Class LeadingSentence

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.compare_comply.v1.model.LeadingSentence
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class LeadingSentence
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The leading sentences in a section or subsection of the input document.
  • Constructor Details

    • LeadingSentence

      public LeadingSentence()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      The text of the leading sentence.

      Returns:
      the text
    • getLocation

      public Location getLocation()
      Gets the location.

      The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.

      Returns:
      the location
    • getElementLocations

      public List<ElementLocations> getElementLocations()
      Gets the elementLocations.

      An array of `location` objects that lists the locations of detected leading sentences.

      Returns:
      the elementLocations