Class: Google::Cloud::DocumentAI::V1::Document::TextChange
- Inherits:
-
Object
- Object
- Google::Cloud::DocumentAI::V1::Document::TextChange
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/documentai/v1/document.rb
Overview
This message is used for text changes aka. OCR corrections.
Instance Attribute Summary collapse
-
#changed_text ⇒ ::String
The text that replaces the text identified in the
text_anchor
. -
#provenance ⇒ ::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance>
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1::Document::TextAnchor
Provenance of the correction.
Instance Attribute Details
#changed_text ⇒ ::String
Returns The text that replaces the text identified in the text_anchor
.
1045 1046 1047 1048 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1045 class TextChange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#provenance ⇒ ::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance>
Deprecated.
This field is deprecated and may be removed in the next major version update.
Returns The history of this annotation.
1045 1046 1047 1048 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1045 class TextChange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1::Document::TextAnchor
Returns 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.
1045 1046 1047 1048 |
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1045 class TextChange include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |