Class EntityMention (2.0.0)

EntityMention(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
text .language_service.TextSpan
The mention text.
type_ .language_service.EntityMention.Type
The type of the entity mention.
sentiment .language_service.Sentiment
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.

Classes

Type

Type(value)

The supported types of mentions.