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( 2 )
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    Grammar
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

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

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

    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

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

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

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

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

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

  17. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

    Swaps left child and parent

  25. 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

  26. val refinedTopology: RuleTopology[L2]

  27. val refinements: GrammarRefinements[L, L2]

  28. def root: L

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

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

  31. val ruleScoreArray: Array[Double]

  32. def signature: String

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

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

  35. def toString(): String

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. 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