Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: set default language to Chinese in atom model retrieval

myhlolicb9fc871ff3c
diff --git a/mineru/backend/local_model_runtime.py b/mineru/backend/local_model_runtime.py
index 18e7b487..3a4c5804 100644
--- a/mineru/backend/local_model_runtime.py
+++ b/mineru/backend/local_model_runtime.py
@@ -333,7 +333,7 @@ class HybridLocalModelContext:
return self.atom_model_manager.get_atom_model(
atom_model_name=AtomicModel.OCR,
det_db_box_thresh=det_db_box_thresh,
- lang=self.lang if lang is None else lang,
+ lang="ch",
det_db_unclip_ratio=det_db_unclip_ratio,
enable_merge_det_boxes=enable_merge_det_boxes,
)