Class EntityMention (2.2.0)

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.

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
EntityMention.Types.Type