GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentTranslation (google_api_document_ai v0.5.0) View Source
A translation of the text segment.
Attributes
-
languageCode
(type:String.t
, default:nil
) - 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. -
provenance
(type:list(GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentProvenance.t)
, default:nil
) - The history of this annotation. -
textAnchor
(type:GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentTextAnchor.t
, default:nil
) - Provenance of the translation. Text anchor indexing into the Document.text. There can only be a singleTextAnchor.text_segments
element. If the start and end index of the text segment are the same, the text change is inserted before that index. -
translatedText
(type:String.t
, default:nil
) - Text translated into the target language.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
t() :: %GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentTranslation{ languageCode: String.t(), provenance: [ GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentProvenance.t() ], textAnchor: GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1DocumentTextAnchor.t(), translatedText: String.t() }
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.