public class ClassificationResult<T> extends Object
Classifier.assignClass(String) holding an assigned class of type T and a score.| Constructor and Description |
|---|
ClassificationResult(T assignedClass,
double score)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
getAssignedClass()
retrieve the result class
|
double |
getScore()
retrieve the result score
|
public ClassificationResult(T assignedClass, double score)
assignedClass - the class T assigned by a Classifierscore - the score for the assignedClass as a doublepublic T getAssignedClass()
T representing an assigned classpublic double getScore()
double representing a result scoreCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.