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
fix: correct folder name in cli_tools.md and improve table matching logic in docx_converter.py
myhlolid5c4ee984dd9
diff --git a/docs/en/usage/cli_tools.md b/docs/en/usage/cli_tools.mdindex b842a621..66142060 100644--- a/docs/en/usage/cli_tools.md+++ b/docs/en/usage/cli_tools.md@@ -45,7 +45,7 @@ Usage: mineru-gradio [OPTIONS]Options:--enable-example BOOLEAN Enable example files for input. The examplefiles to be input need to be placed in the- `example` folder within the directory where+ `examples` folder within the directory wherethe command is currently executed.--enable-http-client BOOLEAN Enable http-client backend to link openai-compatible servers.diff --git a/docs/zh/usage/cli_tools.md b/docs/zh/usage/cli_tools.mdindex 22e87d78..489b1476 100644--- a/docs/zh/usage/cli_tools.md+++ b/docs/zh/usage/cli_tools.md@@ -44,7 +44,7 @@ Usage: mineru-gradio [OPTIONS]Options:--enable-example BOOLEAN 启用示例文件输入(需要将示例文件放置在当前- 执行命令目录下的 `example` 文件夹中)+ 执行命令目录下的 `examples` 文件夹中)--enable-http-client BOOLEAN 在后端选项中启用 HTTP 客户端选项--enable-api BOOLEAN 启用 Gradio API 以提供应用程序服务--max-convert-pages INTEGER 设置从 PDF 转换为 Markdown 的最大页数diff --git a/mineru/model/docx/docx_converter.py b/mineru/model/docx/docx_converter.pyindex 049a5fb1..cc235fba 100644--- a/mineru/model/docx/docx_converter.py+++ b/mineru/model/docx/docx_converter.py@@ -946,13 +946,15 @@ class DocxConverter:for xml_table in xml_tables:matched_html_table = None- while html_index < len(html_tables):- candidate = html_tables[html_index]- html_index += 1+ scan_index = html_index+ while scan_index < len(html_tables):+ candidate = html_tables[scan_index]if self._mammoth_table_matches_xml_table(candidate, xml_table):matched_html_table = candidate+ html_index = scan_index + 1matched_count += 1break+ scan_index += 1if matched_html_table is None:aligned_tables.append(None)