Package opennlp.tools.doccat
Class DocumentSample
- java.lang.Object
-
- opennlp.tools.doccat.DocumentSample
-
- All Implemented Interfaces:
Serializable
public class DocumentSample extends Object implements Serializable
Class which holds a classified document and its category.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentSample(String category, String[] text)
DocumentSample(String category, String[] text, Map<String,Object> extraInformation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCategory()
Map<String,Object>
getExtraInformation()
String[]
getText()
int
hashCode()
String
toString()
-