Class: Kreuzberg::ChunkingReasonManyPages

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
ChunkingReason
Defined in:
lib/kreuzberg/native.rb

Overview

Document has many pages.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#page_countObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4359
4360
4361
# File 'lib/kreuzberg/native.rb', line 4359

def page_count
  @page_count
end

#thresholdObject (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

Returns:

  • (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

Returns:

  • (Boolean)


4370
# File 'lib/kreuzberg/native.rb', line 4370

def large_file? = false

#many_pages?Boolean

Returns:

  • (Boolean)


4372
# File 'lib/kreuzberg/native.rb', line 4372

def many_pages? = true

#ocr_required?Boolean

Returns:

  • (Boolean)


4374
# File 'lib/kreuzberg/native.rb', line 4374

def ocr_required? = false