Skip to content

Commit

Permalink
Merge pull request stanford-futuredata#2 from seanmacavaney/patch-2
Browse files Browse the repository at this point in the history
fixed assert in slow_rerank
  • Loading branch information
cmacdonald committed Mar 26, 2021
2 parents cc2424f + e7e44b6 commit 4367fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colbert/evaluation/slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def slow_rerank(args, query, pids, passages):
ranked_pids = [pids[position] for position in ranked]
ranked_passages = [passages[position] for position in ranked]

assert len(ranked_pids) == len(set(ranked_pids))
assert len(ranked_pids) == len(ranked_scores)

return list(zip(ranked_scores, ranked_pids, ranked_passages))

0 comments on commit 4367fae

Please sign in to comment.