class SemiCRFModel[L, W] extends Model[Segmentation[L, W]] with Serializable
- Annotations
- @SerialVersionUID()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SemiCRFModel
- Model
- Model
- SerializableLogging
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SemiCRFModel(featurizer: BIEOFeaturizer[L, W], constraintsFactory: Factory[L, W], initialWeights: (Feature) ⇒ Double = (_: Feature) => 0.0)
Type Members
- type ExpectedCounts = StandardExpectedCounts[Feature]
-
type
Inference = SemiCRFInference[L, W]
- Definition Classes
- SemiCRFModel → Model
-
type
Marginal = SemiCRF.Marginal[L, W]
- Definition Classes
- SemiCRFModel → Model
-
type
Scorer = Anchoring[L, W]
- Definition Classes
- SemiCRFModel → Model
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, d: Segmentation[L, W], marg: Marginal, counts: ExpectedCounts, scale: Double): Unit
- Definition Classes
- SemiCRFModel → Model
-
final
def
accumulateCounts(inf: Inference, d: Segmentation[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.
Caches the weights using the cache broker.
- Definition Classes
- Model
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val constraintsFactory: Factory[L, W]
- def emptyCounts: StandardExpectedCounts[Feature]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
expectedCounts(inf: Inference, d: Segmentation[L, W], scale: Double = 1.0): ExpectedCounts
- Definition Classes
- Model
- def expectedCountsToObjective(ecounts: ExpectedCounts): (Double, DenseVector[Double])
- def extractCRF(weights: DenseVector[Double]): Inference
-
def
featureIndex: Index[Feature]
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
- SemiCRFModel → Model
- val featurizer: BIEOFeaturizer[L, W]
-
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]): Inference
- Definition Classes
- SemiCRFModel → Model
-
def
initialValueForFeature(f: Feature): Double
- Definition Classes
- SemiCRFModel → Model
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
logger: LazyLogger
- Attributes
- protected
- Definition Classes
- SerializableLogging
-
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
readCachedFeatureWeights(suffix: String = ""): Option[DenseVector[Double]]
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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