PosTaggerFeatureGenerator (Apache OpenNLP :: Core :: Runtime 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.util.featuregen, class: PosTaggerFeatureGenerator

Package opennlp.tools.util.featuregen

# Class PosTaggerFeatureGenerator

java.lang.Object
opennlp.tools.util.featuregen.PosTaggerFeatureGenerator

All Implemented Interfaces:
  `opennlp.tools.util.featuregen.AdaptiveFeatureGenerator`

public class PosTaggerFeatureGenerator extends Object implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
A POS tagging driven feature generator. Adds words and pos tags of the surrounding context.

See Also:
  - `AdaptiveFeatureGenerator`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PosTaggerFeatureGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `createFeatures(List<String> features, String[] tokens, int index, String[] tags)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface opennlp.tools.util.featuregen.AdaptiveFeatureGenerator

  `clearAdaptiveData, updateAdaptiveData`

- ## Constructor Details

  - ### PosTaggerFeatureGenerator

    public PosTaggerFeatureGenerator()

- ## Method Details

  - ### createFeatures

    public void createFeatures(List<String> features, String[] tokens, int index, String[] tags)
    Specified by:
      `createFeatures` in interface `opennlp.tools.util.featuregen.AdaptiveFeatureGenerator`