Class DictionaryFeatureGenerator

java.lang.Object
opennlp.tools.util.featuregen.DictionaryFeatureGenerator
All Implemented Interfaces:
opennlp.tools.util.featuregen.AdaptiveFeatureGenerator

public class DictionaryFeatureGenerator extends Object implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
The DictionaryFeatureGenerator uses a DictionaryNameFinder to generate features for detected names based on the InSpanGenerator.
See Also:
  • Constructor Details

  • Method Details

    • setDictionary

      public void setDictionary(Dictionary dict)
    • setDictionary

      public void setDictionary(String name, Dictionary dict)
    • createFeatures

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