public class Mention
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
Mention.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
entity |
protected java.util.List<java.lang.Long> |
location |
Modifier | Constructor and Description |
---|---|
protected |
Mention(Mention.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
entity()
Gets the entity.
|
java.util.List<java.lang.Long> |
location()
Gets the location.
|
Mention.Builder |
newBuilder()
New builder.
|
protected java.lang.String entity
protected java.util.List<java.lang.Long> location
protected Mention(Mention.Builder builder)
public Mention.Builder newBuilder()
public java.lang.String entity()
The name of the entity.
public java.util.List<java.lang.Long> location()
An array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.