Class Translation (0.3.0)

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

A translation of the text segment.

Attributes

NameDescription
text_anchor .document.Document.TextAnchor
Provenance of the translation. Text anchor indexing into the Document.text. There can only be a single TextAnchor.text_segments element. If the start and end index of the text segment are the same, the text change is inserted before that index.
language_code str
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
translated_text str
Text translated into the target language.
provenance Sequence[.document.Document.Provenance]
The history of this annotation.