Class/Object

epic.parser

SimpleGrammar

Related Docs: object SimpleGrammar | package parser

Permalink

class SimpleGrammar[L, L2, W] extends Grammar[L, W] with Serializable

A epic.parser.SimpleGrammar is a grammar where the topology of the grammar (including the refinements) and the scores for the rules does not vary with the input sentence. That is, this is the class for the standard kind of PCFG/WCFG that are normally taught.

Annotations
@SerialVersionUID()
Linear Supertypes
Grammar[L, W], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleGrammar
  2. Grammar
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleGrammar(topology: RuleTopology[L], lexicon: Lexicon[L, W], refinements: GrammarRefinements[L, L2], refinedTopology: RuleTopology[L2], ruleScoreArray: Array[Double], tagScorer: TagScorer[L2, W])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(refined: Grammar[L, W]): Grammar[L, W]

    Permalink
    Definition Classes
    Grammar
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def anchor(w: IndexedSeq[W], constr: ChartConstraints[L]): Anchoring[L, L2, W]

    Permalink
    Definition Classes
    SimpleGrammarGrammar
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def index: Index[Rule[L]]

    Permalink
    Definition Classes
    Grammar
  14. val insideTensor: SparseRuleTensor[L2]

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def labelEncoder: Encoder[L]

    Permalink
    Definition Classes
    Grammar
  17. def labelIndex: Index[L]

    Permalink
    Definition Classes
    Grammar
  18. val lexicon: Lexicon[L, W]

    Permalink
    Definition Classes
    SimpleGrammarGrammar
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val outsideTensor: SparseRuleTensor[L2]

    Permalink

    Swaps left child and parent

  23. def prettyPrint(out: Writer = new PrintWriter(System.out)): Unit

    Permalink

    Writes a text representation of the grammar to the output.

  24. val refinedTopology: RuleTopology[L2]

    Permalink
  25. val refinements: GrammarRefinements[L, L2]

    Permalink
  26. def root: L

    Permalink
    Definition Classes
    Grammar
  27. def ruleScore(refinedRule: Int): Double

    Permalink
  28. def ruleScore(r: Int, ruleRef: Int): Double

    Permalink
  29. val ruleScoreArray: Array[Double]

    Permalink
  30. def signature: String

    Permalink
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. val tagScorer: TagScorer[L2, W]

    Permalink
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. val topology: RuleTopology[L]

    Permalink
    Definition Classes
    SimpleGrammarGrammar
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withPermissiveLexicon: Grammar[L, W]

    Permalink
    Definition Classes
    SimpleGrammarGrammar

Inherited from Grammar[L, W]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped