public class ToneAnalysis
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected DocumentAnalysis |
documentTone |
protected java.util.List<SentenceAnalysis> |
sentencesTone |
Constructor and Description |
---|
ToneAnalysis() |
Modifier and Type | Method and Description |
---|---|
DocumentAnalysis |
getDocumentTone()
Gets the documentTone.
|
java.util.List<SentenceAnalysis> |
getSentencesTone()
Gets the sentencesTone.
|
@SerializedName(value="document_tone") protected DocumentAnalysis documentTone
@SerializedName(value="sentences_tone") protected java.util.List<SentenceAnalysis> sentencesTone
public DocumentAnalysis getDocumentTone()
The results of the analysis for the full input content.
public java.util.List<SentenceAnalysis> getSentencesTone()
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`.