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
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def index: Index[Rule[L]]

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

    Permalink
  14. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. val outsideTensor: SparseRuleTensor[L2]

    Permalink

    Swaps left child and parent

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

    Permalink

    Writes a text representation of the grammar to the output.

  23. val refinedTopology: RuleTopology[L2]

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

    Permalink
  25. def root: L

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

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

    Permalink
  28. val ruleScoreArray: Array[Double]

    Permalink
  29. def signature: String

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

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

    Permalink
  32. def toString(): String

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

    Permalink
    Definition Classes
    SimpleGrammarGrammar
  34. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(): Unit

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

    Permalink
    Definition Classes
    SimpleGrammarGrammar

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    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