Class ToneChatScore

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.tone_analyzer.v3.model.ToneChatScore
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class ToneChatScore
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The score for an utterance from the input content.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  ToneChatScore.ToneId
    The unique, non-localized identifier of the tone for the results.
  • Constructor Summary

    Constructors
    Constructor Description
    ToneChatScore()  
  • Method Summary

    Modifier and Type Method Description
    Double getScore()
    Gets the score.
    String getToneId()
    Gets the toneId.
    String getToneName()
    Gets the toneName.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ToneChatScore

      public ToneChatScore()
  • Method Details

    • getScore

      public Double getScore()
      Gets the score.

      The score for the tone 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 utterance.

      Returns:
      the score
    • getToneId

      public String getToneId()
      Gets the toneId.

      The unique, non-localized identifier of the tone for the results. The service returns results only for tones whose scores meet a minimum threshold of 0.5.

      Returns:
      the toneId
    • getToneName

      public String getToneName()
      Gets the toneName.

      The user-visible, localized name of the tone.

      Returns:
      the toneName