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 Details

    • UtteranceAnalysis

      public UtteranceAnalysis()
  • Method Details

    • getUtteranceId

      public Long 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

      public String getUtteranceText()
      Gets the utteranceText.

      The text of the utterance.

      Returns:
      the utteranceText
    • getTones

      public List<ToneChatScore> 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

      public String 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