public class CategoriesResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected CategoriesResultExplanation |
explanation |
protected java.lang.String |
label |
protected java.lang.Double |
score |
Constructor and Description |
---|
CategoriesResult() |
Modifier and Type | Method and Description |
---|---|
CategoriesResultExplanation |
getExplanation()
Gets the explanation.
|
java.lang.String |
getLabel()
Gets the label.
|
java.lang.Double |
getScore()
Gets the score.
|
protected java.lang.String label
protected java.lang.Double score
protected CategoriesResultExplanation explanation
public java.lang.String getLabel()
The path to the category through the 5-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).
public java.lang.Double getScore()
Confidence score for the category classification. Higher values indicate greater confidence.
public CategoriesResultExplanation getExplanation()
Information that helps to explain what contributed to the categories result.