text
stringlengths
0
278
to consider them aligned. Expressed as a
percentage of the block width. Default is
0.01. (Applies to: BlockquoteProcessor)
--debug_data_folder TEXT The folder to dump debug data to. Default is
debug_data. (Applies to: DebugProcessor)
--debug_layout_images Whether to dump layout debug images. Default
is False. (Applies to: DebugProcessor)
--debug_pdf_images Whether to dump PDF debug images. Default is
False. (Applies to: DebugProcessor)
--debug_json Whether to dump block debug data. Default is
False. (Applies to: DebugProcessor)
--model_max_length INTEGER The maximum number of tokens to allow for
the Texify model. Default is 768. (Applies
to: EquationProcessor)
--texify_batch_size OPTIONAL The batch size to use for the Texify model.
Default is None, which will use the default
batch size for the model. (Applies to:
EquationProcessor)
--token_buffer INTEGER The number of tokens to buffer above max for
the Texify model. Default is 256. (Applies
to: EquationProcessor)
--common_element_threshold FLOAT
The minimum ratio of pages a text block must
appear on to be considered a common element.
Blocks that meet or exceed this threshold
are marked as common elements. Default is
0.2. (Applies to: IgnoreTextProcessor)
--common_element_min_blocks INTEGER
The minimum number of occurrences of a text
block within a document to consider it a
common element. This ensures that rare
blocks are not mistakenly flagged. Default
is 3. (Applies to: IgnoreTextProcessor)
--max_streak INTEGER The maximum number of consecutive
occurrences of a text block allowed before
it is classified as a common element. Helps
to identify patterns like repeated headers
or footers. Default is 3. (Applies to:
IgnoreTextProcessor)
--text_match_threshold INTEGER The minimum fuzzy match score (0-100)
required to classify a text block as similar
to a common element. Higher values enforce
stricter matching. Default is 90. (Applies
to: IgnoreTextProcessor)
--min_merge_pct FLOAT The minimum percentage of intersection area
to consider merging. Default is 0.015.
(Applies to: LineMergeProcessor)
--block_expand_threshold FLOAT The percentage of the block width to expand
the bounding box. Default is 0.05. (Applies
to: LineMergeProcessor)
--min_merge_ydist FLOAT The minimum y distance between lines to
consider merging. Default is 5. (Applies to:
LineMergeProcessor)
--intersection_pct_threshold FLOAT
The total amount of intersection area
concentrated in the max intersection block.
Default is 0.5. (Applies to:
LineMergeProcessor)
--vertical_overlap_pct_threshold FLOAT
The minimum percentage of vertical overlap
to consider merging. Default is 0.8.
(Applies to: LineMergeProcessor)
--strip_numbers_threshold FLOAT
The fraction of lines or tokens in a block
that must be numeric to consider them as
line numbers. Default is 0.6. (Applies to:
LineNumbersProcessor)
--min_lines_in_block INTEGER The minimum number of lines required in a
block for it to be considered during
processing. Ensures that small blocks are
ignored as they are unlikely to contain
meaningful line numbers. Default is 4.
(Applies to: LineNumbersProcessor)
--min_line_length INTEGER The minimum length of a line (in characters)
to consider it significant when checking for
numeric prefixes or suffixes. Prevents false
positives for short lines. Default is 10.
(Applies to: LineNumbersProcessor)
--min_line_number_span_ratio FLOAT
The minimum ratio of detected line number
spans to total lines required to treat them
as line numbers. Default is 0.6. (Applies
to: LineNumbersProcessor)
--image_expansion_ratio FLOAT The ratio to expand the image by when
cropping. Default is 0.01. (Applies to:
LLMComplexRegionProcessor,
LLMEquationProcessor, LLMFormProcessor,
LLMHandwritingProcessor,
LLMImageDescriptionProcessor,
LLMInlineMathLinesProcessor,
LLMMathBlockProcessor,
LLMSimpleBlockMetaProcessor,
LLMTableProcessor, LLMTableMergeProcessor)
--min_equation_height FLOAT The minimum ratio between equation height
and page height to consider for processing.
Default is 0.06. (Applies to:
LLMEquationProcessor)
--redo_inline_math Whether to redo inline math blocks. Default
is False. (Applies to: LLMEquationProcessor,
LLMMathBlockProcessor)