Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaOcrParsingConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaOcrParsingConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaOcrParsingConfig.



4275
4276
4277
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4275

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enhanced_document_elementsArray<String>

Apply additional enhanced OCR processing to a list of document elements. Supported values: * table: advanced table parsing model. Corresponds to the JSON property enhancedDocumentElements

Returns:

  • (Array<String>)


4266
4267
4268
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4266

def enhanced_document_elements
  @enhanced_document_elements
end

#use_native_textBoolean 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

Returns:

  • (Boolean)


4272
4273
4274
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4272

def use_native_text
  @use_native_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4280
4281
4282
4283
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4280

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