Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions utils/match_quick.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def merge_duplicates_add_unmatched(converted_results, norm_gt_lines, norm_pred_l
for entry in converted_results:
if entry['gt_idx'] not in processed_gt:
merged_results.append(entry)
processed_gt.add(entry['gt_idx'])

for gt_idx in range(len(norm_gt_lines)):
if gt_idx not in processed_gt:
Expand All @@ -156,6 +157,7 @@ def merge_duplicates_add_unmatched(converted_results, norm_gt_lines, norm_pred_l
'pred': "",
'edit': 1
})
processed_gt.add(entry['gt_idx'])
return merged_results


Expand Down
Loading