Explorar el Código

fix: 修复比较结果输出格式,确保在报告中正确显示差异信息

zhch158_admin hace 1 mes
padre
commit
5cf9fb3b25
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      compare_ocr_results.py

+ 1 - 0
compare_ocr_results.py

@@ -973,6 +973,7 @@ class OCRResultComparator:
                     f.write(f"`{diff['file1_value'][:50]}{'...' if len(diff['file1_value']) > 50 else ''}` | ")
                     f.write(f"`{diff['file2_value'][:50]}{'...' if len(diff['file2_value']) > 50 else ''}` | ")
                     f.write(f"{diff['description']} | {severity} |\n")
+
 def compare_ocr_results(file1_path: str, file2_path: str, output_file: str = "comparison_report",
                        output_format: str = "markdown", ignore_images: bool = True,
                        table_mode: str = 'standard', similarity_algorithm: str = 'ratio'):