opennlp.tools.doccat
Class DocumentSample
java.lang.Object
opennlp.tools.doccat.DocumentSample
public class DocumentSample
- extends Object
Class which holds a classified document and its category.
DocumentSample
public DocumentSample(String category,
String text)
DocumentSample
public DocumentSample(String category,
String[] text)
getCategory
public String getCategory()
getText
public String[] getText()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.