Sfoglia il codice sorgente

refactor: Update import path for merger components in pipeline_manager_v2.py

- Changed the import statement for TableCellMatcher and TextMatcher to reflect their new location in ocr_tools.ocr_merger, improving module organization.
zhch158_admin 1 settimana fa
parent
commit
ccde49c2d2

+ 2 - 2
ocr_tools/universal_doc_parser/core/pipeline_manager_v2.py

@@ -48,9 +48,9 @@ except ImportError:
     from pdf_utils import PDFUtils
     from element_processors import ElementProcessors
 
-# 导入 merger 组件
+# 从 ocr_tools.ocr_merger 导入 merger 组件
 try:
-    from merger import TableCellMatcher, TextMatcher
+    from ocr_tools.ocr_merger import TableCellMatcher, TextMatcher
     MERGER_AVAILABLE = True
 except ImportError:
     MERGER_AVAILABLE = False