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: refine caption merging logic to improve handling of continuation markers
myhloli9e6e2bde8566
diff --git a/mineru/utils/table_merge.py b/mineru/utils/table_merge.pyindex 38937a71..dfaeb16c 100644--- a/mineru/utils/table_merge.py+++ b/mineru/utils/table_merge.py@@ -170,7 +170,7 @@ def can_merge_tables(current_table_block, previous_table_block):if caption_blocks:# 如果所有caption都不以"(续)"、"(续表)"、"(continued)"或"(cont.)"结尾,则不合并if not any(- any(full_to_half(merge_para_with_text(block).strip()).lower().endswith(marker.lower())+ any(marker.lower() in full_to_half(merge_para_with_text(block).strip()).lower()for marker in CONTINUATION_MARKERS)for block in caption_blocks):