Package | Description |
---|---|
opennlp.tools.cmdline.doccat | |
opennlp.tools.doccat |
Package for classifying a document into a category.
|
opennlp.uima.doccat |
Modifier and Type | Method and Description |
---|---|
protected DoccatModel |
DoccatModelLoader.loadModel(InputStream modelIn) |
Modifier and Type | Method and Description |
---|---|
static DoccatModel |
DocumentCategorizerME.train(String languageCode,
ObjectStream<DocumentSample> samples)
Trains a doccat model with default feature generation.
|
static DoccatModel |
DocumentCategorizerME.train(String languageCode,
ObjectStream<DocumentSample> samples,
int cutoff,
int iterations)
Trains a doccat model with default feature generation.
|
static DoccatModel |
DocumentCategorizerME.train(String languageCode,
ObjectStream<DocumentSample> samples,
int cutoff,
int iterations,
FeatureGenerator... featureGenerators)
Trains a document categorizer model with custom feature generation.
|
static DoccatModel |
DocumentCategorizerME.train(String languageCode,
ObjectStream<DocumentSample> samples,
TrainingParameters mlParams,
FeatureGenerator... featureGenerators) |
Constructor and Description |
---|
DocumentCategorizerME(DoccatModel model)
Initializes the current instance with a doccat model.
|
DocumentCategorizerME(DoccatModel model,
FeatureGenerator... featureGenerators)
Initializes a the current instance with a doccat model and custom feature generation.
|
Modifier and Type | Method and Description |
---|---|
DoccatModel |
DoccatModelResource.getModel() |
DoccatModel |
DoccatModelResourceImpl.getModel() |
protected DoccatModel |
DoccatModelResourceImpl.loadModel(InputStream in) |
Copyright © 2018 The Apache Software Foundation. All rights reserved.