Google Cloud Natural Language v1 API - Class EntityMention (3.5.0)

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.

Inheritance

object > EntityMention

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.dll

Constructors

EntityMention()

public EntityMention()

EntityMention(EntityMention)

public EntityMention(EntityMention other)
Parameter
NameDescription
otherEntityMention

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
TypeDescription
Sentiment

Text

public TextSpan Text { get; set; }

The mention text.

Property Value
TypeDescription
TextSpan

Type

public EntityMention.Types.Type Type { get; set; }

The type of the entity mention.

Property Value
TypeDescription
EntityMentionTypesType