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 SummaryConstructors Constructor Description EntityMention()
- 
Method SummaryModifier and Type Method Description DoublegetConfidence()Gets the confidence.List<Long>getLocation()Gets the location.StringgetText()Gets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModelequals, hashCode, toString
- 
Constructor Details- 
EntityMentionpublic EntityMention()
 
- 
- 
Method Details- 
getTextGets the text.Entity mention text. - Returns:
- the text
 
- 
getLocationGets the location.Character offsets indicating the beginning and end of the mention in the analyzed text. - Returns:
- the location
 
- 
getConfidenceGets 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
 
 
-