Class Mention
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v1.model.Mention
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Mention
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A mention of a contextual entity.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Mention.Builder
Builder. -
Method Summary
Modifier and Type Method Description String
entity()
Gets the entity.List<Long>
location()
Gets the location.Mention.Builder
newBuilder()
New builder.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a Mention builder
-
entity
Gets the entity.The name of the entity.
- Returns:
- the entity
-
location
Gets the location.An array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.
- Returns:
- the location
-