Class SentenceResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.SentenceResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SentenceResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
SentenceResult.
-
Constructor Summary
Constructors Constructor Description SentenceResult()
-
Method Summary
Modifier and Type Method Description List<Long>
getLocation()
Gets the location.String
getText()
Gets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
SentenceResult
public SentenceResult()
-
-
Method Details
-
getText
Gets the text.The sentence.
- Returns:
- the text
-
getLocation
Gets the location.Character offsets indicating the beginning and end of the sentence in the analyzed text.
- Returns:
- the location
-