class EPParserModel[L, W] extends EPModel[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]] with ParserExtractable[L, W] with Serializable
- Annotations
- @SerialVersionUID()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EPParserModel
- ParserExtractable
- EPModel
- Model
- SerializableLogging
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new EPParserModel(topology: RuleTopology[L], lexicon: Lexicon[L, W], constrainer: Factory[L, W], maxEPIter: Int, initFeatureValue: (Feature) ⇒ Option[Double] = (_:Feature) => None, epInGold: Boolean = false, dropOutFraction: Double = 0.0)(models: CompatibleModel[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]*)
Type Members
- type ExpectedCounts = EPExpectedCounts
- type Inference = EPInference[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]
- type Marginal = EPMarginal[UnrefinedGrammarAnchoring[L, W], framework.ProjectableInference.Marginal]
- type Scorer = EPScorer[framework.ProjectableInference.Scorer]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def accumulateCounts(inf: Inference, s: Scorer, datum: TreeInstance[L, W], marg: Marginal, accum: ExpectedCounts, scale: Double): Unit
-
final
def
accumulateCounts(inf: Inference, d: TreeInstance[L, W], accum: ExpectedCounts, scale: Double): Unit
- Definition Classes
- Model
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cacheFeatureWeights(weights: DenseVector[Double], suffix: String): Unit
Caches the weights using the cache broker.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
constrainer: Factory[L, W]
- Definition Classes
- EPParserModel → ParserExtractable
- def emptyCounts: EPExpectedCounts
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
expectedCounts(inf: Inference, d: TreeInstance[L, W], scale: Double = 1.0): ExpectedCounts
- Definition Classes
- Model
- def expectedCountsToObjective(ecounts: EPExpectedCounts): (Double, DenseVector[Double])
-
def
extractParser(weights: DenseVector[Double])(implicit deb: Debinarizer[L]): Parser[L, W]
- Definition Classes
- EPParserModel → ParserExtractable
- val featureIndex: Index[Feature]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
inferenceFromWeights(weights: DenseVector[Double], dropOutFraction: Double): EPInference[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]
- Definition Classes
- EPModel
- def inferenceFromWeights(weights: DenseVector[Double]): EPInference[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]
- def initialValueForFeature(f: Feature): Double
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
lexicon: Lexicon[L, W]
- Definition Classes
- EPParserModel → ParserExtractable
-
def
logger: LazyLogger
- Attributes
- protected
- Definition Classes
- SerializableLogging
-
def
models: Seq[CompatibleModel[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]]
- Definition Classes
- EPModel
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
numFeatures: Int
- Definition Classes
- Model
-
def
numModels: Int
- Definition Classes
- EPModel
-
def
readCachedFeatureWeights(suffix: String = ""): Option[DenseVector[Double]]
just saves feature weights to disk as a serialized counter.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
topology: RuleTopology[L]
- Definition Classes
- EPParserModel → ParserExtractable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
weightsCacheName: String
- Attributes
- protected
- Definition Classes
- Model