Class TextChange (0.5.1)

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

This message is used for text changes aka. OCR corrections. .. attribute:: text_anchor

Provenance of the correction. 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.

:type: google.cloud.documentai_v1.types.Document.TextAnchor

Attributes

NameDescription
changed_text str
The text that replaces the text identified in the ``text_anchor``.
provenance Sequence[google.cloud.documentai_v1.types.Document.Provenance]
The history of this annotation.

Inheritance

builtins.object > proto.message.Message > TextChange