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 Summary
Constructors Constructor Description ToneCategory()
-
Method Summary
Modifier and Type Method Description String
getCategoryId()
Gets the categoryId.String
getCategoryName()
Gets the categoryName.List<ToneScore>
getTones()
Gets the tones.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
ToneCategory
public ToneCategory()
-
-
Method Details
-
getTones
Gets the tones.An array of `ToneScore` objects that provides the results for the tones of the category.
- Returns:
- the tones
-
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
Gets the categoryName.The user-visible, localized name of the category.
- Returns:
- the categoryName
-