Package

com.johnsnowlabs.nlp.annotators.pos

perceptron

Permalink

package perceptron

Visibility
  1. Public
  2. All

Type Members

  1. case class AveragedPerceptron(tags: Array[String], taggedWordBook: Map[String, String], featuresWeight: Map[String, Map[String, Double]]) extends Serializable with Product

    Permalink

    tags

    Holds all unique tags based on training

    taggedWordBook

    Contains non ambiguous words and their tags

    featuresWeight

    Contains prediction information based on context frequencies

  2. class PerceptronApproach extends AnnotatorApproach[PerceptronModel] with PerceptronTrainingUtils

    Permalink

    Averaged Perceptron model to tag words part-of-speech.

    Averaged Perceptron model to tag words part-of-speech.

    Sets a POS tag to each word within a sentence. Its train data (train_pos) is a spark dataset of POS format values with Annotation columns.

    See https://github.com/JohnSnowLabs/spark-nlp/tree/master/src/test/scala/com/johnsnowlabs/nlp/annotators/pos/perceptron for further reference on how to use this API.

  3. class PerceptronApproachDistributed extends AnnotatorApproach[PerceptronModel] with PerceptronTrainingUtils

    Permalink

    Distributed Averaged Perceptron model to tag words part-of-speech.

    Distributed Averaged Perceptron model to tag words part-of-speech.

    Sets a POS tag to each word within a sentence. Its train data (train_pos) is a spark dataset of POS format values with Annotation columns.

    See https://github.com/JohnSnowLabs/spark-nlp/blob/master/src/test/scala/com/johnsnowlabs/nlp/annotators/pos/perceptron/DistributedPos.scala for further reference on how to use this APIs.

  4. class PerceptronModel extends AnnotatorModel[PerceptronModel] with PerceptronPredictionUtils

    Permalink

    Part of speech tagger that might use different approaches

    Part of speech tagger that might use different approaches

    See https://github.com/JohnSnowLabs/spark-nlp/tree/master/src/test/scala/com/johnsnowlabs/nlp/annotators/pos/perceptron for further reference on how to use this API.

  5. trait PerceptronPredictionUtils extends PerceptronUtils

    Permalink
  6. trait PerceptronTrainingUtils extends PerceptronUtils

    Permalink
  7. trait PerceptronUtils extends AnyRef

    Permalink
  8. trait ReadablePretrainedPerceptron extends ParamsAndFeaturesReadable[PerceptronModel] with HasPretrained[PerceptronModel]

    Permalink
  9. class StringMapStringDoubleAccumulator extends AccumulatorV2[(String, Map[String, Double]), Map[String, Map[String, Double]]]

    Permalink
  10. class TrainingPerceptronLegacy extends Serializable

    Permalink
  11. class TupleKeyLongDoubleMapAccumulator extends AccumulatorV2[((String, String), (Long, Double)), Map[(String, String), (Long, Double)]]

    Permalink

Value Members

  1. object PerceptronApproach extends DefaultParamsReadable[PerceptronApproach] with Serializable

    Permalink
  2. object PerceptronApproachDistributed extends DefaultParamsReadable[PerceptronApproachDistributed] with Serializable

    Permalink
  3. object PerceptronModel extends ReadablePretrainedPerceptron with Serializable

    Permalink

Ungrouped