public sealed class EntityMention : IMessage<EntityMention>, IEquatable<EntityMention>, IDeepCloneable<EntityMention>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Natural Language v1 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.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 |
EntityMentionTypesType |