Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2EntityExtractionParams

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1beta2/classes.rb,
lib/google/apis/documentai_v1beta2/representations.rb,
lib/google/apis/documentai_v1beta2/representations.rb

Overview

Parameters to control entity extraction behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2EntityExtractionParams

Returns a new instance of GoogleCloudDocumentaiV1beta2EntityExtractionParams.



5407
5408
5409
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5407

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether to enable entity extraction. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


5398
5399
5400
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5398

def enabled
  @enabled
end

#model_versionString

Model version of the entity extraction. Default is "builtin/stable". Specify " builtin/latest" for the latest model. Corresponds to the JSON property modelVersion

Returns:

  • (String)


5405
5406
5407
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5405

def model_version
  @model_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5412
5413
5414
5415
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5412

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @model_version = args[:model_version] if args.key?(:model_version)
end