Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2EntityExtractionParams
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2EntityExtractionParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/documentai_v1beta2/classes.rb,
generated/google/apis/documentai_v1beta2/representations.rb,
generated/google/apis/documentai_v1beta2/representations.rb
Overview
Parameters to control entity extraction behavior.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether to enable entity extraction.
-
#model_version ⇒ String
Model version of the entity extraction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2EntityExtractionParams
constructor
A new instance of GoogleCloudDocumentaiV1beta2EntityExtractionParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2EntityExtractionParams
Returns a new instance of GoogleCloudDocumentaiV1beta2EntityExtractionParams.
3592 3593 3594 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3592 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Whether to enable entity extraction.
Corresponds to the JSON property enabled
3583 3584 3585 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3583 def enabled @enabled end |
#model_version ⇒ String
Model version of the entity extraction. Default is "builtin/stable". Specify "
builtin/latest" for the latest model.
Corresponds to the JSON property modelVersion
3590 3591 3592 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3590 def model_version @model_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3597 3598 3599 3600 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3597 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @model_version = args[:model_version] if args.key?(:model_version) end |