Skip to content

Commit

Permalink
Move measure_judged.py && print formatting (#1162)
Browse files Browse the repository at this point in the history
* Move measure_judged.py && print formatting

* Remove loading qrels logging
  • Loading branch information
Johnson Han authored May 7, 2020
1 parent d9364f5 commit ca77396
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/python/measure_judged.py → eval/measure_judged.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def load_qrels(path: str) -> Dict[str, Set[str]]:
line = ' '.join(line.split())
query_id, _, doc_id, relevance = line.rstrip().split(' ')
qrels[query_id].add(doc_id)
if i % 1000000 == 0:
print('Loading qrels {}'.format(i))

return qrels


Expand Down Expand Up @@ -81,4 +80,4 @@ def load_run(path: str) -> Dict[str, List[str]]:
percentage_judged /= max(1, len(run))
print(f'judged@{max_rank}: {percentage_judged}')

print('Done')
print('\nDone')

0 comments on commit ca77396

Please sign in to comment.