Package opennlp.tools.util.featuregen

# Class SuffixFeatureGenerator

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

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

public class SuffixFeatureGenerator extends Object implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
A feature generator implementation that generates suffix-based features.

See Also:
  - `AdaptiveFeatureGenerator`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SuffixFeatureGenerator()`
  Intializes a `SuffixFeatureGenerator`.
  `SuffixFeatureGenerator(int suffixLength)`
  Intializes a `SuffixFeatureGenerator` with the specified `suffixLength`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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

  `clearAdaptiveData, updateAdaptiveData`

- ## Constructor Details

  - ### SuffixFeatureGenerator

    public SuffixFeatureGenerator()
    Intializes a `SuffixFeatureGenerator`. The suffix length is set to the value of `DEFAULT_MAX_LENGTH`.

  - ### SuffixFeatureGenerator

    public SuffixFeatureGenerator(int suffixLength)
    Intializes a `SuffixFeatureGenerator` with the specified `suffixLength`.
    Parameters:
      `suffixLength` - The upper boundary suffix length to use.

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