Class AnnotateTextRequest (2.15.1)

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

The request message for the text annotation API, which can perform multiple analysis types in one call.

Attributes

Name Description
document google.cloud.language_v2.types.Document
Required. Input document.
features google.cloud.language_v2.types.AnnotateTextRequest.Features
Required. The enabled features.
encoding_type google.cloud.language_v2.types.EncodingType
The encoding type used by the API to calculate offsets.

Classes

Features

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

All available features. Setting each one to true will enable that specific analysis for the input.