Class

epic.parser.models

StructModel

Related Doc: package models

Permalink

class StructModel[L, L2, W] extends ParserModel[L, W] with Serializable

Model for structural annotations, a la Klein and Manning 2003.

Annotations
@SerialVersionUID()
Linear Supertypes
ParserModel[L, W], ParserExtractable[L, W], Model[TreeInstance[L, W]], Model[TreeInstance[L, W]], SerializableLogging, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StructModel
  2. ParserModel
  3. ParserExtractable
  4. Model
  5. Model
  6. SerializableLogging
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StructModel(indexedFeatures: IndexedFeaturizer[L, L2, W], annotator: TreeAnnotator[L, W, L2], projections: GrammarRefinements[L, L2], constrainer: Factory[L, W], topology: RuleTopology[L], lexicon: Lexicon[L, W], initialFeatureVal: (Feature) ⇒ Option[Double] = _ => None)

    Permalink

Type Members

  1. type ExpectedCounts = StandardExpectedCounts[Feature]

    Permalink
    Definition Classes
    ModelModel
  2. type Inference = AnnotatedParserInference[L, W]

    Permalink
    Definition Classes
    StructModelParserModelModel
  3. type Marginal = ParseMarginal[L, W]

    Permalink
    Definition Classes
    ParserModelModel
  4. type Scorer = GrammarAnchoring[L, W]

    Permalink
    Definition Classes
    ParserModelModel

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accumulateCounts(inf: Inference, s: Scorer, d: TreeInstance[L, W], m: Marginal, accum: ExpectedCounts, scale: Double): Unit

    Permalink
    Definition Classes
    StructModelModel
  5. final def accumulateCounts(inf: Inference, d: TreeInstance[L, W], accum: ExpectedCounts, scale: Double): Unit

    Permalink
    Definition Classes
    Model
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def cacheFeatureWeights(weights: DenseVector[Double], suffix: String = ""): Unit

    Permalink

    Caches the weights using the cache broker.

    Caches the weights using the cache broker.

    Definition Classes
    Model
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. val constrainer: Factory[L, W]

    Permalink
    Definition Classes
    StructModelParserExtractable
  10. def emptyCounts: StandardExpectedCounts[Feature]

    Permalink
    Definition Classes
    ModelModel
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def expectedCounts(inf: Inference, d: TreeInstance[L, W], scale: Double = 1.0): ExpectedCounts

    Permalink
    Definition Classes
    Model
  14. def expectedCountsToObjective(ecounts: ExpectedCounts): (Double, DenseVector[Double])

    Permalink
    Definition Classes
    ModelModel
  15. def extractParser(weights: DenseVector[Double])(implicit deb: Debinarizer[L]): Parser[L, W]

    Permalink
    Definition Classes
    ParserModelParserExtractable
  16. def featureIndex: CrossProductIndex[Feature, Feature]

    Permalink

    Models have features, and this defines the mapping from indices in the weight vector to features.

    Models have features, and this defines the mapping from indices in the weight vector to features.

    Definition Classes
    StructModelModel
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  19. def inferenceFromWeights(weights: DenseVector[Double]): AnnotatedParserInference[L, W]

    Permalink
    Definition Classes
    StructModelModel
  20. def initialValueForFeature(f: Feature): Double

    Permalink
    Definition Classes
    StructModelModel
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. val lexicon: Lexicon[L, W]

    Permalink
    Definition Classes
    StructModelParserExtractable
  23. def logger: LazyLogger

    Permalink
    Attributes
    protected
    Definition Classes
    SerializableLogging
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  27. def numFeatures: Int

    Permalink
    Definition Classes
    Model
  28. val projections: GrammarRefinements[L, L2]

    Permalink
  29. def readCachedFeatureWeights(suffix: String = ""): Option[DenseVector[Double]]

    Permalink

    just saves feature weights to disk as a serialized counter.

    just saves feature weights to disk as a serialized counter. The file is prefix.ser.gz

    Definition Classes
    Model
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def weightsCacheName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Model

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 ParserModel[L, W]

Inherited from ParserExtractable[L, W]

Inherited from Model[TreeInstance[L, W]]

Inherited from Model[TreeInstance[L, W]]

Inherited from SerializableLogging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped