# Class AnnotateTextResponse (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

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

The text annotations response message.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `sentences` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.Sentence]` Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax. |
| `tokens` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.Token]` Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax. |
| `entities` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.Entity]` Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities. |
| `document_sentiment` | `https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.Sentiment` The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment. |
| `language` | `str` The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. |
| `categories` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.ClassificationCategory]` Categories identified in the input document. |
| `moderation_categories` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v1.types.ClassificationCategory]` Harmful and sensitive categories identified in the input document. |