Class: Xberg::OcrQualityThresholds

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOcrQualityThresholds

Returns a new instance of OcrQualityThresholds.

Parameters:

  • min_total_non_whitespace: (Integer)
  • min_non_whitespace_per_page: (Float)
  • min_meaningful_word_len: (Integer)
  • min_meaningful_words: (Integer)
  • min_alnum_ratio: (Float)
  • min_garbage_chars: (Integer)
  • max_fragmented_word_ratio: (Float)
  • critical_fragmented_word_ratio: (Float)
  • min_avg_word_length: (Float)
  • min_words_for_avg_length_check: (Integer)
  • min_consecutive_repeat_ratio: (Float)
  • min_words_for_repeat_check: (Integer)
  • substantive_min_chars: (Integer)
  • non_text_min_chars: (Integer)
  • alnum_ws_ratio_threshold: (Float)
  • pipeline_min_quality: (Float)


345
# File 'sig/types.rbs', line 345

def initialize: (?min_total_non_whitespace: Integer, ?min_non_whitespace_per_page: Float, ?min_meaningful_word_len: Integer, ?min_meaningful_words: Integer, ?min_alnum_ratio: Float, ?min_garbage_chars: Integer, ?max_fragmented_word_ratio: Float, ?critical_fragmented_word_ratio: Float, ?min_avg_word_length: Float, ?min_words_for_avg_length_check: Integer, ?min_consecutive_repeat_ratio: Float, ?min_words_for_repeat_check: Integer, ?substantive_min_chars: Integer, ?non_text_min_chars: Integer, ?alnum_ws_ratio_threshold: Float, ?pipeline_min_quality: Float) -> void

Instance Attribute Details

#alnum_ws_ratio_thresholdFloat?

Returns the value of attribute alnum_ws_ratio_threshold.

Returns:

  • (Float, nil)


342
343
344
# File 'sig/types.rbs', line 342

def alnum_ws_ratio_threshold
  @alnum_ws_ratio_threshold
end

#critical_fragmented_word_ratioFloat?

Returns the value of attribute critical_fragmented_word_ratio.

Returns:

  • (Float, nil)


335
336
337
# File 'sig/types.rbs', line 335

def critical_fragmented_word_ratio
  @critical_fragmented_word_ratio
end

#max_fragmented_word_ratioFloat?

Returns the value of attribute max_fragmented_word_ratio.

Returns:

  • (Float, nil)


334
335
336
# File 'sig/types.rbs', line 334

def max_fragmented_word_ratio
  @max_fragmented_word_ratio
end

#min_alnum_ratioFloat?

Returns the value of attribute min_alnum_ratio.

Returns:

  • (Float, nil)


332
333
334
# File 'sig/types.rbs', line 332

def min_alnum_ratio
  @min_alnum_ratio
end

#min_avg_word_lengthFloat?

Returns the value of attribute min_avg_word_length.

Returns:

  • (Float, nil)


336
337
338
# File 'sig/types.rbs', line 336

def min_avg_word_length
  @min_avg_word_length
end

#min_consecutive_repeat_ratioFloat?

Returns the value of attribute min_consecutive_repeat_ratio.

Returns:

  • (Float, nil)


338
339
340
# File 'sig/types.rbs', line 338

def min_consecutive_repeat_ratio
  @min_consecutive_repeat_ratio
end

#min_garbage_charsInteger?

Returns the value of attribute min_garbage_chars.

Returns:

  • (Integer, nil)


333
334
335
# File 'sig/types.rbs', line 333

def min_garbage_chars
  @min_garbage_chars
end

#min_meaningful_word_lenInteger?

Returns the value of attribute min_meaningful_word_len.

Returns:

  • (Integer, nil)


330
331
332
# File 'sig/types.rbs', line 330

def min_meaningful_word_len
  @min_meaningful_word_len
end

#min_meaningful_wordsInteger?

Returns the value of attribute min_meaningful_words.

Returns:

  • (Integer, nil)


331
332
333
# File 'sig/types.rbs', line 331

def min_meaningful_words
  @min_meaningful_words
end

#min_non_whitespace_per_pageFloat?

Returns the value of attribute min_non_whitespace_per_page.

Returns:

  • (Float, nil)


329
330
331
# File 'sig/types.rbs', line 329

def min_non_whitespace_per_page
  @min_non_whitespace_per_page
end

#min_total_non_whitespaceInteger?

Returns the value of attribute min_total_non_whitespace.

Returns:

  • (Integer, nil)


328
329
330
# File 'sig/types.rbs', line 328

def min_total_non_whitespace
  @min_total_non_whitespace
end

#min_words_for_avg_length_checkInteger?

Returns the value of attribute min_words_for_avg_length_check.

Returns:

  • (Integer, nil)


337
338
339
# File 'sig/types.rbs', line 337

def min_words_for_avg_length_check
  @min_words_for_avg_length_check
end

#min_words_for_repeat_checkInteger?

Returns the value of attribute min_words_for_repeat_check.

Returns:

  • (Integer, nil)


339
340
341
# File 'sig/types.rbs', line 339

def min_words_for_repeat_check
  @min_words_for_repeat_check
end

#non_text_min_charsInteger?

Returns the value of attribute non_text_min_chars.

Returns:

  • (Integer, nil)


341
342
343
# File 'sig/types.rbs', line 341

def non_text_min_chars
  @non_text_min_chars
end

#pipeline_min_qualityFloat?

Returns the value of attribute pipeline_min_quality.

Returns:

  • (Float, nil)


343
344
345
# File 'sig/types.rbs', line 343

def pipeline_min_quality
  @pipeline_min_quality
end

#substantive_min_charsInteger?

Returns the value of attribute substantive_min_chars.

Returns:

  • (Integer, nil)


340
341
342
# File 'sig/types.rbs', line 340

def substantive_min_chars
  @substantive_min_chars
end

Class Method Details

.defaultOcrQualityThresholds



346
# File 'sig/types.rbs', line 346

def self.default: () -> OcrQualityThresholds