Reusable code components in OCRFlux
mainOCRFlux provides several reusable scripts for high-scale document processing, inference, and evaluation. You can leverage these components for your own projects:
- Large-scale Processing: Use
pipeline.pyto process millions of PDFs using the released model via VLLM. - Data Conversion: Use
jsonl_to_markdown.pyto generate final Markdown files from.jsonldata files. - Inference:
inferencer.pyfor running offline inference using VLLM.server.shto launch a VLLM server.client.pyfor running online inference using VLLM.
- Evaluation:
eval_page_to_markdown.py: Evaluates single-page parsing.eval_table_to_html.py: Evaluates table parsing.eval_element_merge_detect.py: Evaluates detection of paragraph/table merging.eval_html_table_merge.py: Evaluates table merging tasks.