Class ToneAnalysis

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

public class ToneAnalysis
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The tone analysis results for the input from the general-purpose endpoint.
  • Constructor Details

    • ToneAnalysis

      public ToneAnalysis()
  • Method Details

    • getDocumentTone

      public DocumentAnalysis getDocumentTone()
      Gets the documentTone.

      The results of the analysis for the full input content.

      Returns:
      the documentTone
    • getSentencesTone

      public List<SentenceAnalysis> getSentencesTone()
      Gets the sentencesTone.

      An array of `SentenceAnalysis` objects that provides the results of the analysis for the individual sentences of the input content. The service returns results only for the first 100 sentences of the input. The field is omitted if the `sentences` parameter of the request is set to `false`.

      Returns:
      the sentencesTone