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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SentenceResult

      public SentenceResult()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      The sentence.

      Returns:
      the text
    • getLocation

      public List<Long> getLocation()
      Gets the location.

      Character offsets indicating the beginning and end of the sentence in the analyzed text.

      Returns:
      the location