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:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
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
-
getCategory
- Gibt zurück:
- Retrieves the category.
-
getText
- Gibt zurück:
- Retrieves the text in a tokenized form.
-
getExtraInformation
- Gibt zurück:
- Retrieves contextual extra information.
-
toString
-
hashCode
public int hashCode() -
equals
-