Package opennlp.tools.doccat
Klasse DocumentSample
java.lang.Object
opennlp.tools.doccat.DocumentSample
- Alle implementierten Schnittstellen:
Serializable
,Sample
Class which holds a classified document and its category.
- Siehe auch:
-
Konstruktordetails
-
DocumentSample
Initializes ainstance
.- Parameter:
category
- The category to be used. Must not benull
.text
- The plain text in a tokenized form. Must not benull
.
-
DocumentSample
Initializes ainstance
.- Parameter:
category
- The category to be used.Must not benull
.text
- The plain text in a tokenized form. Must not benull
.extraInformation
- Additional information for context.
-
-
Methodendetails