public sealed class EntityMention : IMessage<EntityMention>, IEquatable<EntityMention>, IDeepCloneable<EntityMention>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Natural Language v2 API class EntityMention.
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
Implements
IMessageEntityMention, IEquatableEntityMention, IDeepCloneableEntityMention, IBufferMessage, IMessageInherited Members
Namespace
Google.Cloud.Language.V2Assembly
Google.Cloud.Language.V2.dll
Constructors
EntityMention()
public EntityMention()
EntityMention(EntityMention)
public EntityMention(EntityMention other)
Parameter | |
---|---|
Name | Description |
other |
EntityMention |
Properties
Probability
public float Probability { get; set; }
Probability score associated with the entity.
The score shows the probability of the entity mention being the entity type. The score is in (0, 1] range.
Property Value | |
---|---|
Type | Description |
float |
Sentiment
public Sentiment Sentiment { get; set; }
For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment] is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
Property Value | |
---|---|
Type | Description |
Sentiment |
Text
public TextSpan Text { get; set; }
The mention text.
Property Value | |
---|---|
Type | Description |
TextSpan |
Type
public EntityMention.Types.Type Type { get; set; }
The type of the entity mention.
Property Value | |
---|---|
Type | Description |
EntityMentionTypesType |