Skip to content

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

fix: correct root directory path in pytorch_paddle.py

myhloli51726f7ac485
diff --git a/mineru/model/ocr/pytorch_paddle.py b/mineru/model/ocr/pytorch_paddle.py
index ac8c5c01..d03e0717 100644
--- a/mineru/model/ocr/pytorch_paddle.py
+++ b/mineru/model/ocr/pytorch_paddle.py
@@ -134,7 +134,7 @@ def get_model_params(lang, config):
raise Exception (f'Language {lang} not supported')
-root_dir = os.path.join(Path(__file__).resolve().parent.parent.parent, 'utils')
+root_dir = os.path.join(Path(__file__).resolve().parent.parent, 'utils')
class PytorchPaddleOCR(TextSystem):