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])

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
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def index: Index[Rule[L]]
    Definition Classes
    Grammar
  13. val insideTensor: SparseRuleTensor[L2]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def labelEncoder: Encoder[L]
    Definition Classes
    Grammar
  16. def labelIndex: Index[L]
    Definition Classes
    Grammar
  17. val lexicon: Lexicon[L, W]
    Definition Classes
    SimpleGrammarGrammar
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val outsideTensor: SparseRuleTensor[L2]

    Swaps left child and parent

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

    Writes a text representation of the grammar to the output.

  23. val refinedTopology: RuleTopology[L2]
  24. val refinements: GrammarRefinements[L, L2]
  25. def root: L
    Definition Classes
    Grammar
  26. def ruleScore(refinedRule: Int): Double
  27. def ruleScore(r: Int, ruleRef: Int): Double
  28. val ruleScoreArray: Array[Double]
  29. def signature: String
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. val tagScorer: TagScorer[L2, W]
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. val topology: RuleTopology[L]
    Definition Classes
    SimpleGrammarGrammar
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withPermissiveLexicon: Grammar[L, W]
    Definition Classes
    SimpleGrammarGrammar

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Grammar[L, W]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped