Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb
Overview
Serving config for chunking.
Instance Attribute Summary collapse
-
#chunk_size ⇒ Fixnum
Optional.
-
#include_ancestor_headings ⇒ Boolean
(also: #include_ancestor_headings?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig
constructor
A new instance of GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig
Returns a new instance of GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig.
5184 5185 5186 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 5184 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunk_size ⇒ Fixnum
Optional. The chunk sizes to use when splitting documents, in order of level.
Corresponds to the JSON property chunkSize
5176 5177 5178 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 5176 def chunk_size @chunk_size end |
#include_ancestor_headings ⇒ Boolean Also known as: include_ancestor_headings?
Optional. Whether or not to include ancestor headings when splitting.
Corresponds to the JSON property includeAncestorHeadings
5181 5182 5183 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 5181 def include_ancestor_headings @include_ancestor_headings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5189 5190 5191 5192 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 5189 def update!(**args) @chunk_size = args[:chunk_size] if args.key?(:chunk_size) @include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings) end |