Class AnnotateTextRequest

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

Attributes
NameDescription
google.cloud.language_v1beta2.types.Documentdocument
Required. Input document.
google.cloud.language_v1beta2.types.AnnotateTextRequest.Featuresfeatures
Required. The enabled features.
google.cloud.language_v1beta2.types.EncodingTypeencoding_type
The encoding type used by the API to calculate offsets.

Inheritance

builtins.object > proto.message.Message > AnnotateTextRequest

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. Next ID: 10