package crf
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- case class Attr(id: Int, name: String, isNumerical: Boolean = false) extends Product with Serializable
- case class AttrFeature(id: Int, attrId: Int, label: Int) extends Product with Serializable
- case class AttrStat(frequency: Int, sum: Float) extends Product with Serializable
- case class CrfDataset(instances: Seq[(InstanceLabels, Instance)], metadata: DatasetMetadata) extends Product with Serializable
-
case class
CrfParams(minEpochs: Int = 10, maxEpochs: Int = 1000, l2: Float = 1f, c0: Int = 1500000, lossEps: Float = 1e-4f, randomSeed: Option[Int] = None, verbose: nlp.annotators.ner.Verbose.Value = Verbose.Silent) extends Product with Serializable
Hyper Parameters and Setting for LinearChainCrf training
Hyper Parameters and Setting for LinearChainCrf training
- minEpochs
\- Minimum number of epochs to train
- maxEpochs
\- Maximum number of epochs to train
- l2
\- l2 regularization coefficient
- c0
\- Initial number of steps in decay strategy
- lossEps
\- If loss after a SGD epochs haven't improved (absolutely) more than lossEps, then training is stopped
- randomSeed
\- Seed for random
- verbose
\- Level of verbosity during training procedure
- class DatasetEncoder extends AnyRef
- class DatasetMetadata extends WritableAnnotatorComponent
- class FbCalculator extends AnyRef
- case class Instance(items: Seq[SparseArray]) extends Product with Serializable
- case class InstanceLabels(labels: Seq[Int]) extends Product with Serializable
- class L2DecayStrategy extends AnyRef
- class LinearChainCrf extends AnyRef
- class LinearChainCrfModel extends WritableAnnotatorComponent
- case class SerializedDatasetMetadata(labels: Seq[String], attrs: Seq[Attr], attrFeatures: Seq[AttrFeature], transitions: Seq[Transition], featuresStat: Seq[AttrStat]) extends SerializedAnnotatorComponent[DatasetMetadata] with Product with Serializable
- case class SerializedLinearChainCrfModel(weights: Seq[Float], metadata: SerializedDatasetMetadata) extends SerializedAnnotatorComponent[LinearChainCrfModel] with Product with Serializable
- class SparseArray extends AnyRef
- case class TextSentenceAttrs(words: Seq[WordAttrs]) extends Product with Serializable
- case class TextSentenceLabels(labels: Seq[String]) extends Product with Serializable
- case class Transition(stateFrom: Int, stateTo: Int) extends Product with Serializable
- case class WordAttrs(strAttrs: Seq[(String, String)], numAttrs: Array[Float] = Array.empty) extends Product with Serializable
Value Members
- object DatasetReader
- object EdgeCalculator
- object SparseArray
- object VectorMath