Class: Kreuzberg::NoChunkingReasonTextLayerDetected
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::NoChunkingReasonTextLayerDetected
- Extended by:
- T::Sig
- Includes:
- NoChunkingReason
- Defined in:
- lib/kreuzberg/native.rb
Overview
PDF has substantial text layer (OCR not needed).
Instance Attribute Summary collapse
-
#avg_chars_per_page ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#text_coverage ⇒ 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
#avg_chars_per_page ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4203 4204 4205 |
# File 'lib/kreuzberg/native.rb', line 4203 def avg_chars_per_page @avg_chars_per_page end |
#text_coverage ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4203 4204 4205 |
# File 'lib/kreuzberg/native.rb', line 4203 def text_coverage @text_coverage end |
Class Method Details
.from_hash(hash) ⇒ Object
4228 4229 4230 |
# File 'lib/kreuzberg/native.rb', line 4228 def self.from_hash(hash) new(text_coverage: hash[:text_coverage] || hash["text_coverage"], avg_chars_per_page: hash[:avg_chars_per_page] || hash["avg_chars_per_page"]) end |
Instance Method Details
#chunking_disabled? ⇒ Boolean
4222 |
# File 'lib/kreuzberg/native.rb', line 4222 def chunking_disabled? = false |
#fast_text_extraction? ⇒ Boolean
4224 4225 4226 |
# File 'lib/kreuzberg/native.rb', line 4224 def fast_text_extraction? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#few_pages? ⇒ Boolean
4216 |
# File 'lib/kreuzberg/native.rb', line 4216 def few_pages? = false |
#format_not_chunkable? ⇒ Boolean
4220 |
# File 'lib/kreuzberg/native.rb', line 4220 def format_not_chunkable? = false |
#small_file? ⇒ Boolean
4214 |
# File 'lib/kreuzberg/native.rb', line 4214 def small_file? = false |
#text_layer_detected? ⇒ Boolean
4218 |
# File 'lib/kreuzberg/native.rb', line 4218 def text_layer_detected? = true |