Skip to content

Commit

Permalink
eval/measure_judged.py should split by white space not limited to sin…
Browse files Browse the repository at this point in the history
…gle space (#1232)

Co-authored-by: Jimmy Lin <jimmylin@uwaterloo.ca>
  • Loading branch information
x65han and lintool authored May 28, 2020
1 parent 32c233e commit a1ecfa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval/measure_judged.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def load_run(path: str) -> Dict[str, List[str]]:
run = collections.OrderedDict()
with open(path) as f:
for line in f:
query_id, _, doc_title, rank, _, _ = line.split(' ')
query_id, _, doc_title, rank, _, _ = line.split()
if query_id not in run:
run[query_id] = []
run[query_id].append((doc_title, int(rank)))
Expand Down

0 comments on commit a1ecfa4

Please sign in to comment.