Package

com.johnsnowlabs.nlp.annotators.pos

perceptron

Permalink

package perceptron

Visibility
  1. Public
  2. All

Type Members

  1. class AveragedPerceptron extends WritableAnnotatorComponent

    Permalink

    Specific model for PerceptronApproach

  2. class PerceptronApproach extends AnnotatorApproach[PerceptronModel]

    Permalink

    Created by Saif Addin on 5/17/2017.

    Created by Saif Addin on 5/17/2017. Inspired on Averaged Perceptron by Matthew Honnibal https://explosion.ai/blog/part-of-speech-pos-tagger-in-python

  3. class PerceptronModel extends AnnotatorModel[PerceptronModel]

    Permalink

    Part of speech tagger that might use different approaches

  4. case class SerializedPerceptronModel(tags: List[String], wordBook: List[(String, String)], featuresWeight: Map[String, Map[String, Double]], lastIteration: Int) extends SerializedAnnotatorComponent[AveragedPerceptron] with Product with Serializable

    Permalink

    Serialized representation of PerceptronApproach Converting mutable types and arrays into serializable lists

    Serialized representation of PerceptronApproach Converting mutable types and arrays into serializable lists

    tags

    unique set of POS-tags stored

    wordBook

    book that contains non-ambiguous tags

    featuresWeight

    features that contain a context and frequency of appearance based on training

    lastIteration

    last iteration run on training, useful for weighting

Value Members

  1. object PerceptronApproach extends DefaultParamsReadable[PerceptronApproach] with Serializable

    Permalink
  2. object PerceptronModel extends ParamsAndFeaturesReadable[PerceptronModel] with Serializable

    Permalink

Ungrouped