Class TextChange (2.29.0)

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

This message is used for text changes aka. OCR corrections.

Attributes

Name Description
text_anchor google.cloud.documentai_v1.types.Document.TextAnchor
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.
changed_text str
The text that replaces the text identified in the text_anchor.
provenance MutableSequence[google.cloud.documentai_v1.types.Document.Provenance]
The history of this annotation.