public class ToneScore
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Constructor and Description |
---|
ToneScore() |
Modifier and Type | Method and Description |
---|---|
Double |
getScore()
Gets the score.
|
String |
getToneId()
Gets the toneId.
|
String |
getToneName()
Gets the toneName.
|
public 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 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 String getToneName()
The user-visible, localized name of the tone.
Copyright © 2021 IBM Cloud. All rights reserved.