Class: Kreuzberg::ChunkingReasonManyPages
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::ChunkingReasonManyPages
- Extended by:
- T::Sig
- Includes:
- ChunkingReason
- Defined in:
- lib/kreuzberg/native.rb
Overview
Document has many pages.
Instance Attribute Summary collapse
-
#page_count ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#threshold ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #large_and_many_pages? ⇒ Boolean
- #large_file? ⇒ Boolean
- #many_pages? ⇒ Boolean
- #ocr_required? ⇒ Boolean
Instance Attribute Details
#page_count ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4359 4360 4361 |
# File 'lib/kreuzberg/native.rb', line 4359 def page_count @page_count end |
#threshold ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4359 4360 4361 |
# File 'lib/kreuzberg/native.rb', line 4359 def threshold @threshold end |
Class Method Details
.from_hash(hash) ⇒ Object
4380 4381 4382 |
# File 'lib/kreuzberg/native.rb', line 4380 def self.from_hash(hash) new(page_count: hash[:page_count] || hash["page_count"], threshold: hash[:threshold] || hash["threshold"]) end |
Instance Method Details
#large_and_many_pages? ⇒ Boolean
4376 4377 4378 |
# File 'lib/kreuzberg/native.rb', line 4376 def large_and_many_pages? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
4370 |
# File 'lib/kreuzberg/native.rb', line 4370 def large_file? = false |
#many_pages? ⇒ Boolean
4372 |
# File 'lib/kreuzberg/native.rb', line 4372 def many_pages? = true |
#ocr_required? ⇒ Boolean
4374 |
# File 'lib/kreuzberg/native.rb', line 4374 def ocr_required? = false |