opennlp.tools.doccat
Class DocumentSample

java.lang.Object
  extended by opennlp.tools.doccat.DocumentSample

public class DocumentSample
extends Object

Class which holds a classified document and its category.


Constructor Summary
DocumentSample(String category, String text)
           
DocumentSample(String category, String[] text)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCategory()
           
 String[] getText()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentSample

public DocumentSample(String category,
                      String text)

DocumentSample

public DocumentSample(String category,
                      String[] text)
Method Detail

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.