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: clean up code formatting in batch_analyze.py
myhloli983aef759b25
diff --git a/mineru/backend/pipeline/batch_analyze.py b/mineru/backend/pipeline/batch_analyze.pyindex 2a0d010b..e6db1b0f 100644--- a/mineru/backend/pipeline/batch_analyze.py+++ b/mineru/backend/pipeline/batch_analyze.py@@ -249,16 +249,12 @@ class BatchAnalyze:_lang = table_res_dict['lang']table_model = atom_model_manager.get_atom_model(atom_model_name='table',- device='cpu',lang=_lang,- table_sub_model_name='slanet_plus')html_code, table_cell_bboxes, logic_points, elapse = table_model.predict(table_res_dict['table_img'])# 判断是否返回正常if html_code:- expected_ending = html_code.strip().endswith(- '</html>'- ) or html_code.strip().endswith('</table>')+ expected_ending = html_code.strip().endswith('</html>') or html_code.strip().endswith('</table>')if expected_ending:table_res_dict['table_res']['html'] = html_codeelse: