package perceptron
- Alphabetic
- Public
- All
Type Members
-
case class
AveragedPerceptron(tags: Array[String], taggedWordBook: Map[String, String], featuresWeight: Map[String, Map[String, Double]]) extends Serializable with Product
- tags
Holds all unique tags based on training
- taggedWordBook
Contains non ambiguous words and their tags
- featuresWeight
Contains prediction information based on context frequencies
-
class
PerceptronApproach extends AnnotatorApproach[PerceptronModel] with PerceptronTrainingUtils
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.
-
class
PerceptronApproachDistributed extends AnnotatorApproach[PerceptronModel] with PerceptronTrainingUtils
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.
-
class
PerceptronModel extends AnnotatorModel[PerceptronModel] with HasSimpleAnnotate[PerceptronModel] with PerceptronPredictionUtils
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.
- trait PerceptronPredictionUtils extends PerceptronUtils
- trait PerceptronTrainingUtils extends PerceptronUtils
- trait PerceptronUtils extends AnyRef
- trait ReadablePretrainedPerceptron extends ParamsAndFeaturesReadable[PerceptronModel] with HasPretrained[PerceptronModel]
- class StringMapStringDoubleAccumulator extends AccumulatorV2[(String, Map[String, Double]), Map[String, Map[String, Double]]]
- class TrainingPerceptronLegacy extends Serializable
- class TupleKeyLongDoubleMapAccumulator extends AccumulatorV2[((String, String), (Long, Double)), Map[(String, String), (Long, Double)]]
Value Members
- object PerceptronApproach extends DefaultParamsReadable[PerceptronApproach] with Serializable
- object PerceptronApproachDistributed extends DefaultParamsReadable[PerceptronApproachDistributed] with Serializable
- object PerceptronModel extends ReadablePretrainedPerceptron with Serializable