|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.classification.ClassificationResult<T>
public class ClassificationResult<T>
The result of a call to Classifier.assignClass(String)
holding an assigned class of type T
and a score.
Constructor Summary | |
---|---|
ClassificationResult(T assignedClass,
double score)
Constructor |
Method Summary | |
---|---|
T |
getAssignedClass()
retrieve the result class |
double |
getScore()
retrieve the result score |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassificationResult(T assignedClass, double score)
assignedClass
- the class T
assigned by a Classifier
score
- the score for the assignedClass as a double
Method Detail |
---|
public T getAssignedClass()
T
representing an assigned classpublic double getScore()
double
representing a result score
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |