epic.parser

SimpleGrammar

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
Learn more about member selection
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])

Value Members

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

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

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

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

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

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

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

  15. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

    Swaps left child and parent

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

    Writes a text representation of the grammar to the output.

    Writes a text representation of the grammar to the output.

    out

  24. val refinedTopology: RuleTopology[L2]

  25. val refinements: GrammarRefinements[L, L2]

  26. def root: L

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

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

  29. val ruleScoreArray: Array[Double]

  30. def signature: String

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

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

  33. def toString(): String

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

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

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

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

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

    Definition Classes
    SimpleGrammarGrammar

Inherited from Grammar[L, W]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped