Skip to content

Commit

Permalink
Fix pysearch tag mismatch (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
x65han authored May 24, 2020
1 parent cdba0e9 commit 47d75fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyserini/search/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
if need_classifier and len(hits) > (args.r + args.n):
scores, doc_ids = ranker.rerank(doc_ids, scores)

tag = output_path[:-4] if args.output is None else 'anserini'
tag = output_path[:-4] if args.output is None else 'Anserini'
for i, (doc_id, score) in enumerate(zip(doc_ids, scores)):
target_file.write(
f'{topic} Q0 {doc_id} {i + 1} {score:.6f} {tag}\n')

0 comments on commit 47d75fa

Please sign in to comment.