public class ToneScore
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
score |
protected java.lang.String |
toneId |
protected java.lang.String |
toneName |
Constructor and Description |
---|
ToneScore() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getScore()
Gets the score.
|
java.lang.String |
getToneId()
Gets the toneId.
|
java.lang.String |
getToneName()
Gets the toneName.
|
protected java.lang.Double score
@SerializedName(value="tone_id") protected java.lang.String toneId
@SerializedName(value="tone_name") protected java.lang.String toneName
public java.lang.Double getScore()
The score for the tone. * **`2017-09-21`:** The score that is returned lies in the range of 0.5 to 1. A score greater than 0.75 indicates a high likelihood that the tone is perceived in the content. * **`2016-05-19`:** The score that is returned lies in the range of 0 to 1. A score less than 0.5 indicates that the tone is unlikely to be perceived in the content; a score greater than 0.75 indicates a high likelihood that the tone is perceived.
public java.lang.String getToneId()
The unique, non-localized identifier of the tone. * **`2017-09-21`:** The service can return results for the following tone IDs: `anger`, `fear`, `joy`, and `sadness` (emotional tones); `analytical`, `confident`, and `tentative` (language tones). The service returns results only for tones whose scores meet a minimum threshold of 0.5. * **`2016-05-19`:** The service can return results for the following tone IDs of the different categories: for the `emotion` category: `anger`, `disgust`, `fear`, `joy`, and `sadness`; for the `language` category: `analytical`, `confident`, and `tentative`; for the `social` category: `openness_big5`, `conscientiousness_big5`, `extraversion_big5`, `agreeableness_big5`, and `emotional_range_big5`. The service returns scores for all tones of a category, regardless of their values.
public java.lang.String getToneName()
The user-visible, localized name of the tone.