Parcourir la source

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 il y a 1 semaine
Parent
commit
ccde49c2d2
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      ocr_tools/universal_doc_parser/core/pipeline_manager_v2.py

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

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