Package | Description |
---|---|
opennlp.tools.doccat |
Package for classifying a document into a category.
|
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.
|
Modifier and Type | Method and Description |
---|---|
FeatureGenerator[] |
DoccatFactory.getFeatureGenerators() |
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) |
Constructor and Description |
---|
DoccatFactory(FeatureGenerator[] featureGenerators) |
DocumentCategorizerEventStream(ObjectStream<DocumentSample> data,
FeatureGenerator... featureGenerators)
Initializes the current instance via samples and feature generators.
|
Copyright © 2017 The Apache Software Foundation. All rights reserved.