Package | Description |
---|---|
opennlp.tools.doccat |
Package for classifying a document into a category.
|
opennlp.tools.formats |
Experimental package related to converting various corpora to OpenNLP Format.
|
Modifier and Type | Method and Description |
---|---|
DocumentSample |
DocumentCategorizerEvaluator.processSample(DocumentSample sample)
Evaluates the given reference
DocumentSample object. |
DocumentSample |
DocumentSampleStream.read() |
Modifier and Type | Method and Description |
---|---|
protected Iterator<Event> |
DocumentCategorizerEventStream.createEvents(DocumentSample sample) |
DocumentSample |
DocumentCategorizerEvaluator.processSample(DocumentSample sample)
Evaluates the given reference
DocumentSample object. |
Modifier and Type | Method and Description |
---|---|
void |
DoccatCrossValidator.evaluate(ObjectStream<DocumentSample> samples,
int nFolds)
Starts the evaluation.
|
static DoccatModel |
DocumentCategorizerME.train(String languageCode,
ObjectStream<DocumentSample> samples,
TrainingParameters mlParams,
DoccatFactory factory) |
Constructor and Description |
---|
DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)
Initializes the current instance.
|
DocumentCategorizerEventStream(ObjectStream<DocumentSample> data,
FeatureGenerator... featureGenerators)
Initializes the current instance via samples and feature generators.
|
Modifier and Type | Method and Description |
---|---|
DocumentSample |
LeipzigDoccatSampleStream.read() |
Modifier and Type | Method and Description |
---|---|
ObjectStream<DocumentSample> |
DocumentSampleStreamFactory.create(String[] args) |
ObjectStream<DocumentSample> |
LeipzigDocumentSampleStreamFactory.create(String[] args) |
Copyright © 2017 The Apache Software Foundation. All rights reserved.