opennlp.tools.doccat (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

# Package opennlp.tools.doccat

Package for classifying a document into a category.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  DoccatEvaluationMonitor | `EvaluationMonitor` for doccat.
  DocumentCategorizer | Interface for classes which categorize documents.
  FeatureGenerator | Interface for generating features for document categorization.

- Class Summary
  Class | Description
  --- | ---
  BagOfWordsFeatureGenerator | Generates a feature for each word in a document.
  DoccatCrossValidator | Cross validator for document categorization
  DoccatFactory | The factory that provides Doccat default implementations and resources
  DoccatModel | A model for document categorization
  DocumentCategorizerEvaluator | The `DocumentCategorizerEvaluator` measures the performance of the given `DocumentCategorizer` with the provided reference `DocumentSample`s.
  DocumentCategorizerEventStream | Iterator-like class for modeling document classification events.
  DocumentCategorizerME | Maxent implementation of `DocumentCategorizer`.
  DocumentSample | Class which holds a classified document and its category.
  DocumentSampleStream | This class reads in string encoded training samples, parses them and outputs `DocumentSample` objects.
  NGramFeatureGenerator | Generates ngram features for a document.

## Package opennlp.tools.doccat Description

Package for classifying a document into a category.

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