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 Summary
Constructors Constructor Description ToneAnalysis()
-
Method Summary
Modifier and Type Method Description DocumentAnalysis
getDocumentTone()
Gets the documentTone.List<SentenceAnalysis>
getSentencesTone()
Gets the sentencesTone.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
ToneAnalysis
public ToneAnalysis()
-
-
Method Details
-
getDocumentTone
Gets the documentTone.The results of the analysis for the full input content.
- Returns:
- the documentTone
-
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
-