public class SentenceAnalysis
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
inputFrom |
protected java.lang.Long |
inputTo |
protected java.lang.Long |
sentenceId |
protected java.lang.String |
text |
protected java.util.List<ToneCategory> |
toneCategories |
protected java.util.List<ToneScore> |
tones |
Constructor and Description |
---|
SentenceAnalysis() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getInputFrom()
Gets the inputFrom.
|
java.lang.Long |
getInputTo()
Gets the inputTo.
|
java.lang.Long |
getSentenceId()
Gets the sentenceId.
|
java.lang.String |
getText()
Gets the text.
|
java.util.List<ToneCategory> |
getToneCategories()
Gets the toneCategories.
|
java.util.List<ToneScore> |
getTones()
Gets the tones.
|
@SerializedName(value="sentence_id") protected java.lang.Long sentenceId
protected java.lang.String text
protected java.util.List<ToneScore> tones
@SerializedName(value="tone_categories") protected java.util.List<ToneCategory> toneCategories
@SerializedName(value="input_from") protected java.lang.Long inputFrom
@SerializedName(value="input_to") protected java.lang.Long inputTo
public java.lang.Long getSentenceId()
The unique identifier of a sentence of the input content. The first sentence has ID 0, and the ID of each subsequent sentence is incremented by one.
public java.lang.String getText()
The text of the input sentence.
public java.util.List<ToneScore> getTones()
**`2017-09-21`:** An array of `ToneScore` objects that provides the results of the analysis for each qualifying tone of the sentence. The array includes results for any tone whose score is at least 0.5. The array is empty if no tone has a score that meets this threshold. **`2016-05-19`:** Not returned.
public java.util.List<ToneCategory> getToneCategories()
**`2017-09-21`:** Not returned. **`2016-05-19`:** An array of `ToneCategory` objects that provides the results of the tone analysis for the sentence. The service returns results only for the tones specified with the `tones` parameter of the request.
public java.lang.Long getInputFrom()
**`2017-09-21`:** Not returned. **`2016-05-19`:** The offset of the first character of the sentence in the overall input content.
public java.lang.Long getInputTo()
**`2017-09-21`:** Not returned. **`2016-05-19`:** The offset of the last character of the sentence in the overall input content.