public class LeadingSentence
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ElementLocations> |
elementLocations |
protected Location |
location |
protected java.lang.String |
text |
Constructor and Description |
---|
LeadingSentence() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ElementLocations> |
getElementLocations()
Gets the elementLocations.
|
Location |
getLocation()
Gets the location.
|
java.lang.String |
getText()
Gets the text.
|
protected java.lang.String text
protected Location location
@SerializedName(value="element_locations") protected java.util.List<ElementLocations> elementLocations
public java.lang.String getText()
The text of the leading sentence.
public Location getLocation()
The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.
public java.util.List<ElementLocations> getElementLocations()
An array of `location` objects that lists the locations of detected leading sentences.