瀏覽代碼

调整最大合并段落数,从3增加到6,以支持更多段落的合并

zhch158_admin 1 月之前
父節點
當前提交
520d9dcbc4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compare_ocr_results.py

+ 1 - 1
compare_ocr_results.py

@@ -13,7 +13,7 @@ class OCRResultComparator:
     def __init__(self):
         self.differences = []
         self.similarity_threshold = 85  # 相似度阈值,超过85%认为是匹配的
-        self.max_paragraph_window = 3  # 最大合并段落数
+        self.max_paragraph_window = 6  # 最大合并段落数
     
     def normalize_text(self, text: str) -> str:
         """标准化文本:去除多余空格、回车等无效字符"""