Class ClassificationsResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.ClassificationsResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ClassificationsResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A classification of the analyzed text.
-
Constructor Summary
Constructors Constructor Description ClassificationsResult()
-
Method Summary
Modifier and Type Method Description String
getClassName()
Gets the className.Double
getConfidence()
Gets the confidence.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
ClassificationsResult
public ClassificationsResult()
-
-
Method Details
-
getClassName
Gets the className.Classification assigned to the text.
- Returns:
- the className
-
getConfidence
Gets the confidence.Confidence score for the classification. Higher values indicate greater confidence.
- Returns:
- the confidence
-