Class UtteranceAnalysis
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.tone_analyzer.v3.model.UtteranceAnalysis
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class UtteranceAnalysis
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The results of the analysis for an utterance of the input content.
-
Constructor Summary
Constructors Constructor Description UtteranceAnalysis()
-
Method Summary
Modifier and Type Method Description String
getError()
Gets the error.List<ToneChatScore>
getTones()
Gets the tones.Long
getUtteranceId()
Gets the utteranceId.String
getUtteranceText()
Gets the utteranceText.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
UtteranceAnalysis
public UtteranceAnalysis()
-
-
Method Details
-
getUtteranceId
Gets the utteranceId.The unique identifier of the utterance. The first utterance has ID 0, and the ID of each subsequent utterance is incremented by one.
- Returns:
- the utteranceId
-
getUtteranceText
Gets the utteranceText.The text of the utterance.
- Returns:
- the utteranceText
-
getTones
Gets the tones.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.
- Returns:
- the tones
-
getError
Gets the error.**`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.
- Returns:
- the error
-