mirror of
https://github.com/FlagOpen/FlagEmbedding.git
synced 2026-01-01 17:51:36 +00:00
add reranker score
This commit is contained in:
parent
919a53bcb6
commit
fa8a76d7b7
@ -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')
|
||||
Loading…
x
Reference in New Issue
Block a user