public class EntitiesResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
confidence |
protected java.lang.Long |
count |
protected DisambiguationResult |
disambiguation |
protected EmotionScores |
emotion |
protected java.util.List<EntityMention> |
mentions |
protected java.lang.Double |
relevance |
protected FeatureSentimentResults |
sentiment |
protected java.lang.String |
text |
protected java.lang.String |
type |
Constructor and Description |
---|
EntitiesResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getConfidence()
Gets the confidence.
|
java.lang.Long |
getCount()
Gets the count.
|
DisambiguationResult |
getDisambiguation()
Gets the disambiguation.
|
EmotionScores |
getEmotion()
Gets the emotion.
|
java.util.List<EntityMention> |
getMentions()
Gets the mentions.
|
java.lang.Double |
getRelevance()
Gets the relevance.
|
FeatureSentimentResults |
getSentiment()
Gets the sentiment.
|
java.lang.String |
getText()
Gets the text.
|
java.lang.String |
getType()
Gets the type.
|
protected java.lang.String type
protected java.lang.String text
protected java.lang.Double relevance
protected java.lang.Double confidence
protected java.util.List<EntityMention> mentions
protected java.lang.Long count
protected EmotionScores emotion
protected FeatureSentimentResults sentiment
protected DisambiguationResult disambiguation
public java.lang.String getType()
Entity type.
public java.lang.String getText()
The name of the entity.
public java.lang.Double getRelevance()
Relevance score from 0 to 1. Higher values indicate greater relevance.
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.
public java.util.List<EntityMention> getMentions()
Entity mentions and locations.
public java.lang.Long getCount()
How many times the entity was mentioned in the text.
public EmotionScores getEmotion()
Emotion analysis results for the entity, enabled with the `emotion` option.
public FeatureSentimentResults getSentiment()
Sentiment analysis results for the entity, enabled with the `sentiment` option.
public DisambiguationResult getDisambiguation()
Disambiguation information for the entity.