Class AnnotateTextResponse (2.13.2)

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

The text annotations response message.

Attributes

NameDescription
sentences MutableSequence[google.cloud.language_v1beta2.types.Sentence]
Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
tokens MutableSequence[google.cloud.language_v1beta2.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_v1beta2.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_v1beta2.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_v1beta2.types.ClassificationCategory]
Categories identified in the input document.
moderation_categories MutableSequence[google.cloud.language_v1beta2.types.ClassificationCategory]
Harmful and sensitive categories identified in the input document.