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
Subclasses with type arguments of type DocumentSample in opennlp.tools.cmdline.doccatModifier and TypeClassDescriptionclassTool to convert multiple data formats into native OpenNLP doccat training format.final classclassA default implementation ofEvaluationMonitorthat prints to an output stream.final classA defaultDocumentSample-centric implementation ofAbstractEvaluatorToolthat prints to an output stream.classMethods in opennlp.tools.cmdline.doccat with parameters of type DocumentSampleModifier and TypeMethodDescriptionvoidDoccatFineGrainedReportListener.correctlyClassified(DocumentSample reference, DocumentSample prediction) voidDoccatEvaluationErrorListener.misclassified(DocumentSample reference, DocumentSample prediction) voidDoccatFineGrainedReportListener.misclassified(DocumentSample reference, DocumentSample prediction) -
Uses of DocumentSample in opennlp.tools.doccat
Subclasses with type arguments of type DocumentSample in opennlp.tools.doccatModifier and TypeClassDescriptionclassTheDocumentCategorizerEvaluatormeasures the performance of the givenDocumentCategorizerwith the provided referencesamples.classIterator-like class for modeling document classification events.classReads in string encoded training samples, parses them and outputsDocumentSampleobjects.Subinterfaces with type arguments of type DocumentSample in opennlp.tools.doccatMethods 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 TypeMethodDescriptionvoidDoccatCrossValidator.evaluate(ObjectStream<DocumentSample> samples, int nFolds) Starts the evaluation.static DoccatModelDocumentCategorizerME.train(String lang, ObjectStream<DocumentSample> samples, TrainingParameters mlParams, DoccatFactory factory) Starts a training of aDoccatModelwith the given parameters.Constructor parameters in opennlp.tools.doccat with type arguments of type DocumentSampleModifierConstructorDescriptionInitializes aDocumentCategorizerEventStreamvia samples.DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples, FeatureGenerator... featureGenerators) Initializes aDocumentCategorizerEventStreamvia samples andfeature generators. -
Uses of DocumentSample in opennlp.tools.formats
Subclasses with type arguments of type DocumentSample in opennlp.tools.formatsModifier and TypeClassDescriptionclassFactory producing OpenNLPDocumentSampleStreams.classNote: Do not use this class, internal use only!Classes in opennlp.tools.formats that implement interfaces with type arguments of type DocumentSampleModifier and TypeClassDescriptionclassAnObjectStreamimplementation for the Twenty Newsgroups text corpus.Methods in opennlp.tools.formats that return DocumentSampleMethods in opennlp.tools.formats that return types with arguments of type DocumentSampleModifier and TypeMethodDescription