Class DocumentBeginFeatureGenerator

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

public class DocumentBeginFeatureGenerator extends Object implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
This feature generator creates document begin features.
See Also:
  • AdaptiveFeatureGenerator
  • Constructor Details

    • DocumentBeginFeatureGenerator

      public DocumentBeginFeatureGenerator()
  • Method Details

    • createFeatures

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

      public void clearAdaptiveData()
      Specified by:
      clearAdaptiveData in interface opennlp.tools.util.featuregen.AdaptiveFeatureGenerator