Class EntityMention (2.16.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

Name Description
text google.cloud.language_v2.types.TextSpan
The mention text.
type_ google.cloud.language_v2.types.EntityMention.Type
The type of the entity mention.
sentiment google.cloud.language_v2.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.
probability float
Probability score associated with the entity. The score shows the probability of the entity mention being the entity type. The score is in (0, 1] range.

Classes

Type

Type(value)

The supported types of mentions.