Class AnnotateTextRequest (2.0.0)

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

The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.

Attributes

NameDescription
document .language_service.Document
Input document.
features .language_service.AnnotateTextRequest.Features
The enabled features.
encoding_type .language_service.EncodingType
The encoding type used by the API to calculate offsets.

Classes

Features

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

All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.