# Class EntityMention (2.21.0)

2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.2 2.16.0 2.15.1 2.14.0 2.13.4 2.12.0 2.11.0 2.10.1 2.9.1 2.8.1 2.7.0 2.6.1 2.5.2 2.4.3 2.3.2 2.2.2 2.1.0 2.0.0 1.3.2

    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` | `https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.TextSpan` The mention text. |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.EntityMention.Type` The type of the entity mention. |
| `sentiment` | `https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.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.