com.aliasi.classify
Class Classified<E>

java.lang.Object
  extended by com.aliasi.classify.Classified<E>
Type Parameters:
E - the type of object classified
Direct Known Subclasses:
RankedClassified

public class Classified<E>
extends Object

A Classified represents an object that has been classified with a first-best classification. Classified objects are used for training classifiers.

Since:
LingPipe3.9.1
Version:
3.9.1
Author:
Bob Carpenter

Constructor Summary
Classified(E object, Classification c)
          Construct a classified object consisting of the specified object and classification.
 
Method Summary
 Classification getClassification()
          Return the classification of the object.
 E getObject()
          Return the object that is classified.
 String toString()
          Returns a string-based representation of the classified object and best category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Classified

public Classified(E object,
                  Classification c)
Construct a classified object consisting of the specified object and classification.

Parameters:
object - Object being classified.
c - Classification of object.
Method Detail

getObject

public E getObject()
Return the object that is classified.

Returns:
The classified object.

getClassification

public Classification getClassification()
Return the classification of the object.

Returns:
The classification.

toString

public String toString()
Returns a string-based representation of the classified object and best category.

Overrides:
toString in class Object
Returns:
String-based representation of the classified object.