public class EntityMention
extends com.ibm.cloud.sdk.core.service.model.GenericModel
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Double |
confidence |
protected java.util.List<java.lang.Long> |
location |
protected java.lang.String |
text |
| Constructor and Description |
|---|
EntityMention() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getConfidence()
Gets the confidence.
|
java.util.List<java.lang.Long> |
getLocation()
Gets the location.
|
java.lang.String |
getText()
Gets the text.
|
protected java.lang.String text
protected java.util.List<java.lang.Long> location
protected java.lang.Double confidence
public java.lang.String getText()
Entity mention text.
public java.util.List<java.lang.Long> getLocation()
Character offsets indicating the beginning and end of the mention in the analyzed text.
public java.lang.Double getConfidence()
Confidence in the entity identification from 0 to 1. Higher values indicate higher confidence. In standard entities requests, confidence is returned only for English text. All entities requests that use custom models return the confidence score.