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 SummaryConstructors Constructor Description ToneAnalysis()
- 
Method SummaryModifier and Type Method Description DocumentAnalysisgetDocumentTone()Gets the documentTone.List<SentenceAnalysis>getSentencesTone()Gets the sentencesTone.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModelequals, hashCode, toString
- 
Constructor Details- 
ToneAnalysispublic ToneAnalysis()
 
- 
- 
Method Details- 
getDocumentToneGets the documentTone.The results of the analysis for the full input content. - Returns:
- the documentTone
 
- 
getSentencesToneGets 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
 
 
-