Class CategoriesResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.CategoriesResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CategoriesResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A categorization of the analyzed text.
-
Constructor Summary
Constructors Constructor Description CategoriesResult()
-
Method Summary
Modifier and Type Method Description CategoriesResultExplanation
getExplanation()
Gets the explanation.String
getLabel()
Gets the label.Double
getScore()
Gets the score.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
CategoriesResult
public CategoriesResult()
-
-
Method Details
-
getLabel
Gets the label.The path to the category through the multi-level taxonomy hierarchy. For more information about the categories, see [Categories hierarchy](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-categories#categories-hierarchy).
- Returns:
- the label
-
getScore
Gets the score.Confidence score for the category classification. Higher values indicate greater confidence.
- Returns:
- the score
-
getExplanation
Gets the explanation.Information that helps to explain what contributed to the categories result.
- Returns:
- the explanation
-