Class: Kreuzberg::NoChunkingReasonFewPages
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::NoChunkingReasonFewPages
- Extended by:
- T::Sig
- Includes:
- NoChunkingReason
- Defined in:
- lib/kreuzberg/native.rb
Overview
Document has fewer pages than threshold.
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
- #chunking_disabled? ⇒ Boolean
- #fast_text_extraction? ⇒ Boolean
- #few_pages? ⇒ Boolean
- #format_not_chunkable? ⇒ Boolean
- #small_file? ⇒ Boolean
- #text_layer_detected? ⇒ Boolean
Instance Attribute Details
#page_count ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4173 4174 4175 |
# File 'lib/kreuzberg/native.rb', line 4173 def page_count @page_count end |
#threshold ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4173 4174 4175 |
# File 'lib/kreuzberg/native.rb', line 4173 def threshold @threshold end |
Class Method Details
.from_hash(hash) ⇒ Object
4198 4199 4200 |
# File 'lib/kreuzberg/native.rb', line 4198 def self.from_hash(hash) new(page_count: hash[:page_count] || hash["page_count"], threshold: hash[:threshold] || hash["threshold"]) end |
Instance Method Details
#chunking_disabled? ⇒ Boolean
4192 |
# File 'lib/kreuzberg/native.rb', line 4192 def chunking_disabled? = false |
#fast_text_extraction? ⇒ Boolean
4194 4195 4196 |
# File 'lib/kreuzberg/native.rb', line 4194 def fast_text_extraction? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#few_pages? ⇒ Boolean
4186 |
# File 'lib/kreuzberg/native.rb', line 4186 def few_pages? = true |
#format_not_chunkable? ⇒ Boolean
4190 |
# File 'lib/kreuzberg/native.rb', line 4190 def format_not_chunkable? = false |
#small_file? ⇒ Boolean
4184 |
# File 'lib/kreuzberg/native.rb', line 4184 def small_file? = false |
#text_layer_detected? ⇒ Boolean
4188 |
# File 'lib/kreuzberg/native.rb', line 4188 def text_layer_detected? = false |