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 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