Class EntityMention

Represents a mention for an entity in the text. Currently, proper noun mentions are supported.

Attributes
NameDescription
google.cloud.language_v1beta2.types.TextSpantext
The mention text.
google.cloud.language_v1beta2.types.EntityMention.Typetype_
The type of the entity mention.
google.cloud.language_v1beta2.types.Sentimentsentiment
For calls to [AnalyzeEntitySentiment][] or if 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.

Inheritance

builtins.object > proto.message.Message > EntityMention

Classes

Type

Type(value)

The supported types of mentions.