Class CategoriesResultExplanation

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.CategoriesResultExplanation
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class CategoriesResultExplanation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Information that helps to explain what contributed to the categories result.
  • Constructor Details

    • CategoriesResultExplanation

      public CategoriesResultExplanation()
  • Method Details

    • getRelevantText

      public List<CategoriesRelevantText> getRelevantText()
      Gets the relevantText.

      An array of relevant text from the source that contributed to the categorization. The sorted array begins with the phrase that contributed most significantly to the result, followed by phrases that were less and less impactful.

      Returns:
      the relevantText