- Changed the import statement for TableCellMatcher and TextMatcher to reflect their new location in ocr_tools.ocr_merger, improving module organization.
@@ -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