Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableExtractionParams
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableExtractionParams
- 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 table extraction behavior.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether to enable table extraction.
-
#header_hints ⇒ Array<String>
Optional.
-
#model_version ⇒ String
Model version of the table extraction system.
-
#table_bound_hints ⇒ Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableBoundHint>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2TableExtractionParams
constructor
A new instance of GoogleCloudDocumentaiV1beta2TableExtractionParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2TableExtractionParams
Returns a new instance of GoogleCloudDocumentaiV1beta2TableExtractionParams.
4536 4537 4538 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4536 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Whether to enable table extraction.
Corresponds to the JSON property enabled
4516 4517 4518 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4516 def enabled @enabled end |
#header_hints ⇒ Array<String>
Optional. Reserved for future use.
Corresponds to the JSON property headerHints
4522 4523 4524 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4522 def header_hints @header_hints end |
#model_version ⇒ String
Model version of the table extraction system. Default is "builtin/stable".
Specify "builtin/latest" for the latest model.
Corresponds to the JSON property modelVersion
4528 4529 4530 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4528 def model_version @model_version end |
#table_bound_hints ⇒ Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableBoundHint>
Optional. Table bounding box hints that can be provided to complex cases which
our algorithm cannot locate the table(s) in.
Corresponds to the JSON property tableBoundHints
4534 4535 4536 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4534 def table_bound_hints @table_bound_hints end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4541 4542 4543 4544 4545 4546 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 4541 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @header_hints = args[:header_hints] if args.key?(:header_hints) @model_version = args[:model_version] if args.key?(:model_version) @table_bound_hints = args[:table_bound_hints] if args.key?(:table_bound_hints) end |