Uses of Class
opennlp.tools.doccat.DocumentSample
Packages that use DocumentSample
Package
Description
Package for classifying a document into a category.
Experimental package related to converting various corpora to OpenNLP Format.
-
Uses of DocumentSample in opennlp.tools.cmdline.doccat
Methods in opennlp.tools.cmdline.doccat with parameters of type DocumentSampleModifier and TypeMethodDescriptionvoid
DoccatFineGrainedReportListener.correctlyClassified
(DocumentSample reference, DocumentSample prediction) void
DoccatEvaluationErrorListener.misclassified
(DocumentSample reference, DocumentSample prediction) void
DoccatFineGrainedReportListener.misclassified
(DocumentSample reference, DocumentSample prediction) -
Uses of DocumentSample in opennlp.tools.doccat
Methods in opennlp.tools.doccat that return DocumentSampleModifier and TypeMethodDescriptionDocumentCategorizerEvaluator.processSample
(DocumentSample sample) Evaluates the given referencesample
.DocumentSampleStream.read()
Methods in opennlp.tools.doccat with parameters of type DocumentSampleModifier and TypeMethodDescriptionDocumentCategorizerEventStream.createEvents
(DocumentSample sample) DocumentCategorizerEvaluator.processSample
(DocumentSample sample) Evaluates the given referencesample
.Method parameters in opennlp.tools.doccat with type arguments of type DocumentSampleModifier and TypeMethodDescriptionvoid
DoccatCrossValidator.evaluate
(ObjectStream<DocumentSample> samples, int nFolds) Starts the evaluation.static DoccatModel
DocumentCategorizerME.train
(String lang, ObjectStream<DocumentSample> samples, TrainingParameters mlParams, DoccatFactory factory) Starts a training of aDoccatModel
with the given parameters.Constructor parameters in opennlp.tools.doccat with type arguments of type DocumentSampleModifierConstructorDescriptionInitializes aDocumentCategorizerEventStream
via samples.DocumentCategorizerEventStream
(ObjectStream<DocumentSample> samples, FeatureGenerator... featureGenerators) Initializes aDocumentCategorizerEventStream
via samples andfeature generators
. -
Uses of DocumentSample in opennlp.tools.formats
Methods in opennlp.tools.formats that return DocumentSampleMethods in opennlp.tools.formats that return types with arguments of type DocumentSampleModifier and TypeMethodDescription