Package

com.johnsnowlabs.ml

crf

Permalink

package crf

Visibility
  1. Public
  2. All

Type Members

  1. case class Attr(id: Int, name: String, isNumerical: Boolean = false) extends Product with Serializable

    Permalink
  2. case class AttrFeature(id: Int, attrId: Int, label: Int) extends Product with Serializable

    Permalink
  3. case class AttrStat(frequency: Int, sum: Float) extends Product with Serializable

    Permalink
  4. case class CrfDataset(instances: Seq[(InstanceLabels, Instance)], metadata: DatasetMetadata) extends Product with Serializable

    Permalink
  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

    Permalink

    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

  6. class DatasetEncoder extends AnyRef

    Permalink
  7. class DatasetMetadata extends WritableAnnotatorComponent

    Permalink
  8. class FbCalculator extends AnyRef

    Permalink
  9. case class Instance(items: Seq[SparseArray]) extends Product with Serializable

    Permalink
  10. case class InstanceLabels(labels: Seq[Int]) extends Product with Serializable

    Permalink
  11. class L2DecayStrategy extends AnyRef

    Permalink
  12. class LinearChainCrf extends AnyRef

    Permalink
  13. class LinearChainCrfModel extends WritableAnnotatorComponent

    Permalink
  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

    Permalink
  15. case class SerializedLinearChainCrfModel(weights: Seq[Float], metadata: SerializedDatasetMetadata) extends SerializedAnnotatorComponent[LinearChainCrfModel] with Product with Serializable

    Permalink
  16. class SparseArray extends AnyRef

    Permalink
  17. case class TextSentenceAttrs(words: Seq[WordAttrs]) extends Product with Serializable

    Permalink
  18. case class TextSentenceLabels(labels: Seq[String]) extends Product with Serializable

    Permalink
  19. case class Transition(stateFrom: Int, stateTo: Int) extends Product with Serializable

    Permalink
  20. case class WordAttrs(strAttrs: Seq[(String, String)], numAttrs: Array[Float] = Array.empty) extends Product with Serializable

    Permalink

Value Members

  1. object DatasetReader

    Permalink
  2. object EdgeCalculator

    Permalink
  3. object SparseArray

    Permalink
  4. object VectorMath

    Permalink

Ungrouped