Explorar o código

feat: 更新表格单元格匹配逻辑以实现简单的1:1映射

zhch158_admin hai 9 horas
pai
achega
9f90a3c17f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      merger/table_cell_matcher.py

+ 1 - 1
merger/table_cell_matcher.py

@@ -571,7 +571,7 @@ class TableCellMatcher:
         # 🎯 策略 1: 数量相等,简单 1:1 映射
         if len(html_rows) == len(grouped_boxes):
             for i in range(len(html_rows)):
-                mapping[i] = grouped_boxes[i]
+                mapping[i] = [i]
             return mapping
         
         # 🎯 策略 2: 第一遍 - 基于内容精确匹配(使用预处理后的组)