Class: Google::Cloud::DocumentAI::V1beta3::Document::TextChange

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/document.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#changed_text::String

Returns The text that replaces the text identified in the text_anchor.

Returns:

  • (::String)

    The text that replaces the text identified in the text_anchor.



1051
1052
1053
1054
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1051

class TextChange
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#provenance::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Provenance>

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns The history of this annotation.

Returns:



1051
1052
1053
1054
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1051

class TextChange
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text_anchor::Google::Cloud::DocumentAI::V1beta3::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.

Returns:



1051
1052
1053
1054
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1051

class TextChange
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end