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 Summary
Constructors Constructor Description LeadingSentence()
-
Method Summary
Modifier and Type Method Description List<ElementLocations>
getElementLocations()
Gets the elementLocations.Location
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
-
LeadingSentence
public LeadingSentence()
-
-
Method Details
-
getText
Gets the text.The text of the leading sentence.
- Returns:
- the text
-
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
Gets the elementLocations.An array of `location` objects that lists the locations of detected leading sentences.
- Returns:
- the elementLocations
-