Переглянути джерело

refactor(test_dit_layout_adapter): update test input and output paths for layout adapter

- Modified the default configuration in the test file to use a new input PDF and corresponding output directory.
- Commented out the previous input and output paths for clarity and to prevent accidental usage during tests.
- Adjusted the pages configuration to comment out the specific page processing, enhancing test flexibility.
zhch158_admin 6 годин тому
батько
коміт
31494b5840

+ 5 - 3
ocr_tools/universal_doc_parser/tests/test_dit_layout_adapter.py

@@ -505,13 +505,15 @@ if __name__ == "__main__":
         # 默认配置
         default_config = {
             # 测试输入
-            "input": "/Users/zhch158/workspace/data/流水分析/2023年度报告母公司.pdf",
-            "output-dir": "./output/2023年度报告母公司_dit_layout_adapter",
+            # "input": "/Users/zhch158/workspace/data/流水分析/2023年度报告母公司.pdf",
+            # "output-dir": "./output/2023年度报告母公司_dit_layout_adapter",
 
+            "input": "/Users/zhch158/workspace/data/流水分析/施博深.pdf",
+            "output-dir": "./output/施博深_dit_layout_adapter",
             
             # 页面范围(可选)
             # "pages": "2-7,24, 26, 29-34",  # 只处理前1页
-            "pages": "32",  # 处理指定页面
+            # "pages": "32",  # 处理指定页面
 
 			# 是否启用重叠框处理
 			# "no-remove-overlap": True,