|
@@ -150,6 +150,7 @@ class DataProcessor:
|
|
|
cell['data-score'] = f"{matched_bbox['score']:.4f}"
|
|
cell['data-score'] = f"{matched_bbox['score']:.4f}"
|
|
|
cell['data-paddle-index'] = str(matched_bbox['paddle_bbox_index'])
|
|
cell['data-paddle-index'] = str(matched_bbox['paddle_bbox_index'])
|
|
|
|
|
|
|
|
|
|
+ # ✅ 完整记录单元格信息
|
|
|
cells.append({
|
|
cells.append({
|
|
|
'type': 'table_cell',
|
|
'type': 'table_cell',
|
|
|
'text': cell_text,
|
|
'text': cell_text,
|
|
@@ -161,5 +162,6 @@ class DataProcessor:
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
matched_bbox['used'] = True
|
|
matched_bbox['used'] = True
|
|
|
-
|
|
|
|
|
|
|
+ # ✅ 如果匹配失败,不应该添加到 cells 中
|
|
|
|
|
+
|
|
|
return str(soup), cells, current_pointer
|
|
return str(soup), cells, current_pointer
|