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) |
static DoccatFactory |
DoccatFactory.create(String subclassName,
Tokenizer tokenizer,
FeatureGenerator[] featureGenerators)
Deprecated.
will be removed after 1.7.1 release. Don't use it.
|
protected void |
DoccatFactory.init(FeatureGenerator[] featureGenerators) |
protected void |
DoccatFactory.init(Tokenizer tokenizer,
FeatureGenerator[] featureGenerators)
Deprecated.
will be removed after 1.7.1 release. Don't use it.
|
void |
DoccatFactory.setFeatureGenerators(FeatureGenerator[] featureGenerators) |
Constructor and Description |
---|
DoccatFactory(FeatureGenerator[] featureGenerators) |
DoccatFactory(Tokenizer tokenizer,
FeatureGenerator[] featureGenerators)
Deprecated.
will be removed after 1.7.1 release. Don't use it.
|
DocumentCategorizerEventStream(ObjectStream<DocumentSample> data,
FeatureGenerator... featureGenerators)
Initializes the current instance via samples and feature generators.
|
DocumentCategorizerME(DoccatModel model,
FeatureGenerator... featureGenerators)
Deprecated.
train a
DoccatModel with a specific
DoccatFactory to customize the FeatureGenerator s |
Copyright © 2017 The Apache Software Foundation. All rights reserved.