Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
The OCR parsing configurations for documents.
Instance Attribute Summary collapse
-
#enhanced_document_elements ⇒ Array<String>
[DEPRECATED] This field is deprecated.
-
#use_native_text ⇒ Boolean
(also: #use_native_text?)
If true, will use native text instead of OCR text on pages containing native text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig.
6245 6246 6247 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enhanced_document_elements ⇒ Array<String>
[DEPRECATED] This field is deprecated. To use the additional enhanced document
elements processing, please switch to layout_parsing_config
.
Corresponds to the JSON property enhancedDocumentElements
6236 6237 6238 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6236 def enhanced_document_elements @enhanced_document_elements end |
#use_native_text ⇒ Boolean Also known as: use_native_text?
If true, will use native text instead of OCR text on pages containing native
text.
Corresponds to the JSON property useNativeText
6242 6243 6244 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6242 def use_native_text @use_native_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6250 6251 6252 6253 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6250 def update!(**args) @enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements) @use_native_text = args[:use_native_text] if args.key?(:use_native_text) end |