Class AnnotateTextResponse (2.17.2)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
AnnotateTextResponse ( mapping = None , * , ignore_unknown_fields = False , ** kwargs )
The text annotations response message.
Attributes
Name
Description
sentences
MutableSequence[google.cloud.language_v1.types.Sentence ]
Sentences in the input document. Populated if the user
enables
AnnotateTextRequest.Features.extract_syntax .
tokens
MutableSequence[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[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
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[google.cloud.language_v1.types.ClassificationCategory ]
Categories identified in the input document.
moderation_categories
MutableSequence[google.cloud.language_v1.types.ClassificationCategory ]
Harmful and sensitive categories identified
in the input document.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class AnnotateTextResponse (2.17.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.2 (latest)](/python/docs/reference/language/latest/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.17.0](/python/docs/reference/language/2.17.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.16.0](/python/docs/reference/language/2.16.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.15.1](/python/docs/reference/language/2.15.1/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.14.0](/python/docs/reference/language/2.14.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.13.4](/python/docs/reference/language/2.13.4/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.12.0](/python/docs/reference/language/2.12.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.11.0](/python/docs/reference/language/2.11.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.10.1](/python/docs/reference/language/2.10.1/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.9.1](/python/docs/reference/language/2.9.1/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.8.1](/python/docs/reference/language/2.8.1/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.7.0](/python/docs/reference/language/2.7.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.6.1](/python/docs/reference/language/2.6.1/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.5.2](/python/docs/reference/language/2.5.2/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.4.3](/python/docs/reference/language/2.4.3/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.3.2](/python/docs/reference/language/2.3.2/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.2.2](/python/docs/reference/language/2.2.2/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.1.0](/python/docs/reference/language/2.1.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [2.0.0](/python/docs/reference/language/2.0.0/google.cloud.language_v1.types.AnnotateTextResponse)\n- [1.3.2](/python/docs/reference/language/1.3.2/google.cloud.language_v1.types.AnnotateTextResponse) \n\n AnnotateTextResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe text annotations response message."]]