Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::Document::TextChange.
This message is used for text changes aka. OCR corrections.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#changed_text
def changed_text() -> ::String
Returns
-
(::String) — The text that replaces the text identified in the
text_anchor
.
#changed_text=
def changed_text=(value) -> ::String
Parameter
-
value (::String) — The text that replaces the text identified in the
text_anchor
.
Returns
-
(::String) — The text that replaces the text identified in the
text_anchor
.
#provenance
def provenance() -> ::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance>
Returns
- (::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance>) — The history of this annotation.
#provenance=
def provenance=(value) -> ::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance>
Parameter
- value (::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance>) — The history of this annotation.
Returns
- (::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance>) — The history of this annotation.
#text_anchor
def text_anchor() -> ::Google::Cloud::DocumentAI::V1::Document::TextAnchor
Returns
-
(::Google::Cloud::DocumentAI::V1::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.
#text_anchor=
def text_anchor=(value) -> ::Google::Cloud::DocumentAI::V1::Document::TextAnchor
Parameter
-
value (::Google::Cloud::DocumentAI::V1::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.
Returns
-
(::Google::Cloud::DocumentAI::V1::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.