add reranker score

This commit is contained in:
cfli 2024-10-29 20:27:36 +08:00
parent 919a53bcb6
commit fa8a76d7b7

View File

@ -134,6 +134,6 @@ if __name__ == '__main__':
data[i]['neg_scores'].append(float(scores[score_idx]))
score_idx += 1
with open(score_args.output_dir, 'w') as f:
with open(score_args.output_file, 'w') as f:
for d in data:
f.write(json.dumps(d) + '\n')