Class AnnotateTextResponse (2.6.0)

Stay organized with collections Save and categorize content based on your preferences.
AnnotateTextResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The text annotations response message.

Attributes

NameDescription
sentences Sequence[google.cloud.language_v1.types.Sentence]
Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
tokens Sequence[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 Sequence[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 Sequence[google.cloud.language_v1.types.ClassificationCategory]
Categories identified in the input document.

Inheritance

builtins.object > proto.message.Message > AnnotateTextResponse