Class EntityMention
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.EntityMention
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class EntityMention
extends com.ibm.cloud.sdk.core.service.model.GenericModel
EntityMention.
-
Constructor Summary
Constructors Constructor Description EntityMention()
-
Method Summary
Modifier and Type Method Description Double
getConfidence()
Gets the confidence.List<Long>
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
-
EntityMention
public EntityMention()
-
-
Method Details
-
getText
Gets the text.Entity mention text.
- Returns:
- the text
-
getLocation
Gets the location.Character offsets indicating the beginning and end of the mention in the analyzed text.
- Returns:
- the location
-
getConfidence
Gets the confidence.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.
- Returns:
- the confidence
-