Class EntityMention (2.13.1)

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 google.cloud.language_v1beta2.types.TextSpan
The mention text.
type_ google.cloud.language_v1beta2.types.EntityMention.Type
The type of the entity mention.
sentiment google.cloud.language_v1beta2.types.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.

Values: TYPE_UNKNOWN (0): Unknown PROPER (1): Proper name COMMON (2): Common noun (or noun compound)