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 Details

    • CategoriesResult

      public CategoriesResult()
  • Method Details

    • getLabel

      public String 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

      public Double getScore()
      Gets the score.

      Confidence score for the category classification. Higher values indicate greater confidence.

      Returns:
      the score
    • getExplanation

      public CategoriesResultExplanation getExplanation()
      Gets the explanation.

      Information that helps to explain what contributed to the categories result.

      Returns:
      the explanation