Package opennlp.tools.util.featuregen

# Class DocumentBeginFeatureGenerator

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

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

@ThreadSafe public class DocumentBeginFeatureGenerator extends Object implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
This feature generator creates document begin features.

See Also:
  - `AdaptiveFeatureGenerator`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DocumentBeginFeatureGenerator()`

- ## Method Summary

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

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

  `updateAdaptiveData`

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