## Uses of Interface
opennlp.tools.doccat.FeatureGenerator

- Packages that use FeatureGenerator
  Package | Description
  --- | ---
  opennlp.tools.doccat | Package for classifying a document into a category.

- - ### Uses of FeatureGenerator in opennlp.tools.doccat

    Classes in opennlp.tools.doccat that implement FeatureGenerator
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BagOfWordsFeatureGenerator` Generates a feature for each word in a document.
    `class` | `NGramFeatureGenerator` Generates ngram features for a document.

    Methods in opennlp.tools.doccat that return FeatureGenerator
    Modifier and Type | Method and Description
    --- | ---
    `FeatureGenerator[]` | DoccatFactory.`getFeatureGenerators()`

    Methods in opennlp.tools.doccat with parameters of type FeatureGenerator
    Modifier and Type | Method and Description
    --- | ---
    `static DoccatFactory` | DoccatFactory.`create(String subclassName, FeatureGenerator[] featureGenerators)`
    `protected void` | DoccatFactory.`init(FeatureGenerator[] featureGenerators)`
    `void` | DoccatFactory.`setFeatureGenerators(FeatureGenerator[] featureGenerators)`

    Constructors in opennlp.tools.doccat with parameters of type FeatureGenerator
    Constructor and Description
    `DoccatFactory(FeatureGenerator[] featureGenerators)`
    `DocumentCategorizerEventStream(ObjectStream<DocumentSample> data, FeatureGenerator... featureGenerators)` Initializes the current instance via samples and feature generators.

Copyright © 2026 The Apache Software Foundation. All rights reserved.