Class ToneCategory

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.tone_analyzer.v3.model.ToneCategory
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class ToneCategory
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The category for a tone from the input content.
  • Constructor Details

    • ToneCategory

      public ToneCategory()
  • Method Details

    • getTones

      public List<ToneScore> getTones()
      Gets the tones.

      An array of `ToneScore` objects that provides the results for the tones of the category.

      Returns:
      the tones
    • getCategoryId

      public String getCategoryId()
      Gets the categoryId.

      The unique, non-localized identifier of the category for the results. The service can return results for the following category IDs: `emotion_tone`, `language_tone`, and `social_tone`.

      Returns:
      the categoryId
    • getCategoryName

      public String getCategoryName()
      Gets the categoryName.

      The user-visible, localized name of the category.

      Returns:
      the categoryName