public class UtteranceAnalysis
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
error |
protected java.util.List<ToneChatScore> |
tones |
protected java.lang.Long |
utteranceId |
protected java.lang.String |
utteranceText |
Constructor and Description |
---|
UtteranceAnalysis() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getError()
Gets the error.
|
java.util.List<ToneChatScore> |
getTones()
Gets the tones.
|
java.lang.Long |
getUtteranceId()
Gets the utteranceId.
|
java.lang.String |
getUtteranceText()
Gets the utteranceText.
|
@SerializedName(value="utterance_id") protected java.lang.Long utteranceId
@SerializedName(value="utterance_text") protected java.lang.String utteranceText
protected java.util.List<ToneChatScore> tones
protected java.lang.String error
public java.lang.Long getUtteranceId()
The unique identifier of the utterance. The first utterance has ID 0, and the ID of each subsequent utterance is incremented by one.
public java.lang.String getUtteranceText()
The text of the utterance.
public java.util.List<ToneChatScore> getTones()
An array of `ToneChatScore` objects that provides results for the most prevalent tones of the utterance. The array includes results for any tone whose score is at least 0.5. The array is empty if no tone has a score that meets this threshold.
public java.lang.String getError()
**`2017-09-21`:** An error message if the utterance contains more than 500 characters. The service does not analyze the utterance. **`2016-05-19`:** Not returned.