package crf

  1. Alphabetic
  1. Public
  2. All

Type Members

  1. case class Attr(id: Int, name: String, isNumerical: Boolean = false) extends Product with Serializable
  2. case class AttrFeature(id: Int, attrId: Int, label: Int) extends Product with Serializable
  3. case class AttrStat(frequency: Int, sum: Float) extends Product with Serializable
  4. case class CrfDataset(instances: Seq[(InstanceLabels, Instance)], metadata: DatasetMetadata) extends Product with Serializable
  5. 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


    - Minimum number of epochs to train


    - Maximum number of epochs to train


    - l2 regularization coefficient


    - Initial number of steps in decay strategy


    - If loss after a SGD epochs haven't improved (absolutely) more than lossEps, then training is stopped


    - Seed for random


    - Level of verbosity during training procedure

  6. class DatasetEncoder extends AnyRef
  7. class DatasetMetadata extends WritableAnnotatorComponent
  8. class FbCalculator extends AnyRef
  9. case class Instance(items: Seq[SparseArray]) extends Product with Serializable
  10. case class InstanceLabels(labels: Seq[Int]) extends Product with Serializable
  11. class L2DecayStrategy extends AnyRef
  12. class LinearChainCrf extends AnyRef
  13. class LinearChainCrfModel extends WritableAnnotatorComponent
  14. 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
  15. case class SerializedLinearChainCrfModel(weights: Seq[Float], metadata: SerializedDatasetMetadata) extends SerializedAnnotatorComponent[LinearChainCrfModel] with Product with Serializable
  16. class SparseArray extends AnyRef
  17. case class TextSentenceAttrs(words: Seq[WordAttrs]) extends Product with Serializable
  18. case class TextSentenceLabels(labels: Seq[String]) extends Product with Serializable
  19. case class Transition(stateFrom: Int, stateTo: Int) extends Product with Serializable
  20. case class WordAttrs(strAttrs: Seq[(String, String)], numAttrs: Array[Float] = Array.empty) extends Product with Serializable