c

epic.sequences

CRFModel

class CRFModel[L, W] extends Model[TaggedSequence[L, W]] with Model[TaggedSequence[L, W]] with Serializable

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

Instance Constructors

  1. new CRFModel(featureIndex: Index[Feature], lexicon: Factory[L, W], featurizer: IndexedFeaturizer[L, W], initialWeights: (Feature) ⇒ Double = (_: Feature) => 0.0)

Type Members

  1. type ExpectedCounts = StandardExpectedCounts[Feature]
    Definition Classes
    ModelModel
  2. type Inference = CRFInference[L, W]
    Definition Classes
    CRFModelModel
  3. type Marginal = CRF.Marginal[L, W]
    Definition Classes
    CRFModelModel
  4. type Scorer = Anchoring[L, W]
    Definition Classes
    CRFModelModel

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accumulateCounts(inf: Inference, s: Scorer, d: TaggedSequence[L, W], marg: Marginal, counts: ExpectedCounts, scale: Double): Unit
    Definition Classes
    CRFModelModel
  5. final def accumulateCounts(inf: Inference, d: TaggedSequence[L, W], accum: ExpectedCounts, scale: Double): Unit
    Definition Classes
    Model
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. 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
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def emptyCounts: StandardExpectedCounts[Feature]
    Definition Classes
    ModelModel
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. final def expectedCounts(inf: Inference, d: TaggedSequence[L, W], scale: Double = 1.0): ExpectedCounts
    Definition Classes
    Model
  13. def expectedCountsToObjective(ecounts: ExpectedCounts): (Double, DenseVector[Double])
    Definition Classes
    ModelModel
  14. def extractCRF(weights: DenseVector[Double]): Inference
  15. val featureIndex: Index[Feature]
    Definition Classes
    CRFModelModel
  16. val featurizer: IndexedFeaturizer[L, W]
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  20. def inferenceFromWeights(weights: DenseVector[Double]): Inference
    Definition Classes
    CRFModelModel
  21. def initialValueForFeature(f: Feature): Double
    Definition Classes
    CRFModelModel
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def labelIndex: Index[L]
  24. val lexicon: Factory[L, W]
  25. def logger: LazyLogger
    Attributes
    protected
    Definition Classes
    SerializableLogging
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  29. def numFeatures: Int
    Definition Classes
    Model
  30. 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
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def weightsCacheName: String
    Attributes
    protected
    Definition Classes
    Model

Inherited from Model[TaggedSequence[L, W]]

Inherited from Model[TaggedSequence[L, W]]

Inherited from SerializableLogging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped