Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
refactor: enhance backend info descriptions and improve language support in parsing logic
myhlolie5ee3136d405
diff --git a/mineru/backend/hybrid/hybrid_analyze.py b/mineru/backend/hybrid/hybrid_analyze.pyindex e7435d56..78ec7714 100644--- a/mineru/backend/hybrid/hybrid_analyze.py+++ b/mineru/backend/hybrid/hybrid_analyze.py@@ -334,7 +334,7 @@ def doc_analyze(_ocr_enable = ocr_classify(pdf_bytes, parse_method=parse_method)_vlm_ocr_enable = False- if _ocr_enable and language in ["ch"] and inline_formula_enable:+ if _ocr_enable and language in ["ch", "en"] and inline_formula_enable:_vlm_ocr_enable = Trueresults = predictor.batch_two_step_extract(images=images_pil_list)else:@@ -389,7 +389,7 @@ async def aio_doc_analyze(_ocr_enable = ocr_classify(pdf_bytes, parse_method=parse_method)_vlm_ocr_enable = False- if _ocr_enable and language in ["ch"] and inline_formula_enable:+ if _ocr_enable and language in ["ch", "en"] and inline_formula_enable:_vlm_ocr_enable = Trueresults = await predictor.aio_batch_two_step_extract(images=images_pil_list)else:diff --git a/mineru/cli/gradio_app.py b/mineru/cli/gradio_app.pyindex e43a915e..401d5c79 100644--- a/mineru/cli/gradio_app.py+++ b/mineru/cli/gradio_app.py@@ -280,7 +280,7 @@ def main(ctx,"md_rendering": "Markdown rendering","md_text": "Markdown text","backend_info_vlm": "High-precision parsing via VLM, supports Chinese and English documents only.",- "backend_info_pipeline": "Traditional pipeline parsing, supports multiple languages, hallucination-free.",+ "backend_info_pipeline": "Traditional Multi-model pipeline parsing, supports multiple languages, hallucination-free.","backend_info_hybrid": "High-precision hybrid parsing, supports multiple languages.","backend_info_default": "Select the backend engine for document parsing.",},@@ -311,7 +311,7 @@ def main(ctx,"md_rendering": "Markdown 渲染","md_text": "Markdown 文本","backend_info_vlm": "多模态大模型高精度解析,仅支持中英文文档。",- "backend_info_pipeline": "多模型传统管道解析,支持多语言,无幻觉。",+ "backend_info_pipeline": "传统多模型管道解析,支持多语言,无幻觉。","backend_info_hybrid": "高精度混合解析,支持多语言。","backend_info_default": "选择文档解析的后端引擎。",},@@ -388,9 +388,7 @@ def main(ctx,vlm_engine = get_vlm_engine("auto", is_async=True)if vlm_engine in ["transformers", "mlx-engine"]:- if vlm_engine == "transformers":- http_client_enable = True- pass+ http_client_enable = Trueelse:try:logger.info(f"Start init {vlm_engine}...")diff --git a/mineru/resources/header.html b/mineru/resources/header.htmlindex ddb76c20..af7f869e 100644--- a/mineru/resources/header.html+++ b/mineru/resources/header.html@@ -66,13 +66,11 @@color: #fafafa;opacity: 0.8;">- A one-stop, open-source, high-quality data extraction tool that supports converting PDF to Markdown and JSON.<br>- <span style="display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;">+ A one-stop, open-source, high-quality data extraction tool that supports converting PDF to Markdown and JSON.<br>If you found our project helpful, please give us a ⭐️ to support us!<a href="https://github.com/opendatalab/MinerU" style="display: inline-flex; align-items: center;">- <img src="https://img.shields.io/github/stars/opendatalab/MinerU.svg" alt="stars" style="vertical-align: middle;">+ <img src="https://img.shields.io/github/stars/opendatalab/MinerU.svg" alt="stars" style="vertical-align: middle; position: relative; top: 5px;"></a>- </span></p><style>.link-block {