Package opennlp.tools.util.featuregen

# Class BrownTokenClassFeatureGenerator

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

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

public class BrownTokenClassFeatureGenerator extends Object implements opennlp.tools.util.featuregen.AdaptiveFeatureGenerator
Generates `BrownCluster` features for current token and token class.

See Also:
  - `AdaptiveFeatureGenerator`
  - `BrownCluster`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BrownTokenClassFeatureGenerator(BrownCluster dict)`
  Instantiates a `BrownTokenClassFeatureGenerator` via a specified `BrownCluster`.

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

  - ### BrownTokenClassFeatureGenerator

    public BrownTokenClassFeatureGenerator(BrownCluster dict)
    Instantiates a `BrownTokenClassFeatureGenerator` via a specified `BrownCluster`.
    Parameters:
      `dict` - The token `dictionary` 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`