Packages

final case class Spec(words: IndexedSeq[W], sparsityPattern: ChartConstraints[L]) extends GrammarAnchoring[L, W] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, GrammarAnchoring[L, W], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Spec
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GrammarAnchoring
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Spec(words: IndexedSeq[W], sparsityPattern: ChartConstraints[L])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *(other: UnrefinedGrammarAnchoring[L, W]): GrammarAnchoring[L, W]
    Definition Classes
    GrammarAnchoring
  4. def *(other: GrammarAnchoring[L, W]): GrammarAnchoring[L, W]

    Computes the pointwise product of two grammars, augmenting their refinement space to reflect this.

    Computes the pointwise product of two grammars, augmenting their refinement space to reflect this. If they share the same annotationTag, (assuming it's non-negative) they will share their state space. (That is, they will have the same annotations.)

    Definition Classes
    GrammarAnchoring
  5. def /(other: GrammarAnchoring[L, W]): GrammarAnchoring[L, W]

    Computes the pointwise division of two grammars, augmenting their refinement space to reflect this.

    Computes the pointwise division of two grammars, augmenting their refinement space to reflect this. If they share the same annotationTag, (assuming it's non-negative) they will share their state space. (That is, they will have the same annotations.)

    Definition Classes
    GrammarAnchoring
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def addConstraints(constraints: ChartConstraints[L]): GrammarAnchoring[L, W]
    Definition Classes
    SpecGrammarAnchoring
  8. def annotationTag: Int

    The annotationTag controls if two grammars are over the same refinements.

    The annotationTag controls if two grammars are over the same refinements. If they are, then * and / can be much faster.

    Note that 0 is reserved for unrefined anchorings, and -1 never matches other tags.

    Reserved: 1 - Lexicalized Parsers with no symbol or rule annotation

    0's will be optimized

    Definition Classes
    SpecGrammarAnchoring
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. val attachCache: Array[Array[OpenAddressHashArray[Double]]]
  11. def binaryRuleRef(ref: Int): Int
  12. def childRefinement(rule: Int, ruleRef: Int): Int
    Definition Classes
    SpecGrammarAnchoring
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  14. def depIndex(ruleRef: Int): Int
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def headIndex(ruleRef: Int): Int
  18. def isConvergedTo(f: GrammarAnchoring[L, W], diff: Double): Boolean
    Definition Classes
    GrammarAnchoring
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def joinBinaryRuleRef(head: Int, ref: Int): Int
  21. def joinBinaryRuleRefs(lexRefs: Array[Int], ruleRefs: Array[Int]): Array[Int]
  22. def joinTagRef(head: Int, ref: Int): Int
  23. def joinTagRefs(lexRefs: Array[Int], ruleRefs: Array[Int]): Array[Int]
  24. def joinUnaryRuleRef(head: Int, ref: Int): Int
  25. def joinUnaryRuleRefs(lexRefs: Array[Int], ruleRefs: Array[Int]): Array[Int]
  26. def leftChildRefinement(rule: Int, ruleRef: Int): Int
    Definition Classes
    SpecGrammarAnchoring
  27. def length: Int
    Definition Classes
    GrammarAnchoring
  28. val lexicon: Lexicon[L, W]
    Definition Classes
    SpecGrammarAnchoring
  29. def logPartition: Double
    Definition Classes
    GrammarAnchoring
  30. def marginal: RefinedChartMarginal[L, W]
    Definition Classes
    GrammarAnchoring
  31. def maxLabelRefinements: Int
    Definition Classes
    GrammarAnchoring
  32. def maxMarginal: RefinedChartMarginal[L, W]
    Definition Classes
    GrammarAnchoring
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. def numValidRefinements(label: Int): Int
    Definition Classes
    SpecGrammarAnchoring
  37. def numValidRuleRefinements(rule: Int): Int
    Definition Classes
    SpecGrammarAnchoring
  38. def parentRefinement(rule: Int, ruleRef: Int): Int
    Definition Classes
    SpecGrammarAnchoring
  39. def rightChildRefinement(rule: Int, ruleRef: Int): Int
    Definition Classes
    SpecGrammarAnchoring
  40. val ruleCache: TriangularArray[Array[OpenAddressHashArray[Double]]]
  41. def ruleRefinementFromRefinements(r: Int, refA: Int, refB: Int, refC: Int): Int

    Returns the refined rule given parent and child refinements for a unary rule.

    Returns the refined rule given parent and child refinements for a unary rule. May return -1 if no such rule is allowed.

    r

    rule Index

    refA

    parent index

    refB

    left child index

    refC

    right child index

    returns

    rule refinement id, or -1 if rule is not allowed with those refinements

    Definition Classes
    SpecGrammarAnchoring
  42. def ruleRefinementFromRefinements(r: Int, refA: Int, refB: Int): Int

    Returns the refined rule given parent and child refinements for a unary rule.

    Returns the refined rule given parent and child refinements for a unary rule. May return -1 if no such rule is allowed.

    r

    rule index

    refA

    parent index

    refB

    child index

    returns

    rule refinement id, or -1 if rule is not allowed with those refinements

    Definition Classes
    SpecGrammarAnchoring
  43. def scoreBinaryRule(begin: Int, split: Int, end: Int, rule: Int, ref: Int): Double

    Scores the indexed epic.trees.BinaryRule rule when it occurs at (begin, split, end)

    Scores the indexed epic.trees.BinaryRule rule when it occurs at (begin, split, end)

    Definition Classes
    SpecGrammarAnchoring
  44. def scoreSpan(begin: Int, end: Int, label: Int, ref: Int): Double

    Scores the indexed label rule with refinenemnt ref, when it occurs at (begin, end).

    Scores the indexed label rule with refinenemnt ref, when it occurs at (begin, end). Can be used for s, or for a "bottom" label. Mainly used for s.

    Definition Classes
    SpecGrammarAnchoring
  45. def scoreUnaryRule(begin: Int, end: Int, rule: Int, ref: Int): Double

    Scores the indexed epic.trees.UnaryRule rule when it occurs at (begin, end)

    Scores the indexed epic.trees.UnaryRule rule when it occurs at (begin, end)

    Definition Classes
    SpecGrammarAnchoring
  46. val sparsityPattern: ChartConstraints[L]
    Definition Classes
    SpecGrammarAnchoring
  47. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  48. def tagConstraints: TagConstraints[L]
    Definition Classes
    GrammarAnchoring
  49. def tagRef(ref: Int): Int
  50. val topology: RuleTopology[L]
    Definition Classes
    SpecGrammarAnchoring
  51. def unaryHeadIndex(ref: Int): Int
  52. def unaryRuleRef(ref: Int): Int
  53. def validCoarseRulesGivenParentRefinement(a: Int, refA: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  54. def validLabelRefinements(begin: Int, end: Int, label: Int): Array[Int]

    For a given span, what refinements to the label are allowed? Refinements in general are in the range (0, numValidRefinements).

    For a given span, what refinements to the label are allowed? Refinements in general are in the range (0, numValidRefinements). This method may return a subset.

    returns

    array of valid refinements. Don't modify!

    Definition Classes
    SpecGrammarAnchoring
  55. def validLeftChildRefinementsGivenRule(begin: Int, splitBegin: Int, splitEnd: Int, end: Int, rule: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  56. def validParentRefinementsGivenRule(begin: Int, splitBegin: Int, splitEnd: Int, end: Int, rule: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  57. def validRightChildRefinementsGivenRule(begin: Int, splitBegin: Int, splitEnd: Int, end: Int, rule: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  58. def validRuleRefinementsGivenLeftChild(begin: Int, split: Int, completionBegin: Int, completionEnd: Int, rule: Int, lcRef: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  59. def validRuleRefinementsGivenParent(begin: Int, splitBegin: Int, splitEnd: Int, end: Int, rule: Int, parentRef: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  60. def validRuleRefinementsGivenParent(begin: Int, end: Int, rule: Int, parentRef: Int): Array[Int]

    For a given span and the parent's refinement, what refinements to the rule are allowed?

    For a given span and the parent's refinement, what refinements to the rule are allowed?

    Definition Classes
    SpecGrammarAnchoring
  61. def validRuleRefinementsGivenRightChild(completionBegin: Int, completionEnd: Int, split: Int, end: Int, rule: Int, rcRef: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  62. def validUnaryRuleRefinementsGivenChild(begin: Int, end: Int, rule: Int, childRef: Int): Array[Int]
    Definition Classes
    SpecGrammarAnchoring
  63. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  65. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. val words: IndexedSeq[W]
    Definition Classes
    SpecGrammarAnchoring

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 Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GrammarAnchoring[L, W]

Inherited from AnyRef

Inherited from Any

Ungrouped