public sealed class EntityMention : IMessage<EntityMention>, IEquatable<EntityMention>, IDeepCloneable<EntityMention>, IBufferMessage, IMessage
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
Implements
IMessage<EntityMention>, IEquatable<EntityMention>, IDeepCloneable<EntityMention>, IBufferMessage, IMessageNamespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.dll
Constructors
EntityMention()
public EntityMention()
EntityMention(EntityMention)
public EntityMention(EntityMention other)
Parameter | |
---|---|
Name | Description |
other | EntityMention |
Properties
Sentiment
public Sentiment Sentiment { get; set; }
For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v1.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 |
EntityMention.Types.Type |