Skip to content

Commit

Permalink
mf
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Nov 21, 2023
1 parent 8a08884 commit d80269a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir-measures/ir_measures_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ def render_results(run_file, irds_id, output_path, top_k=10):
excerpt_for_rendering['queries'] = {k: json.loads(irds_loader.map_query_as_jsonl(v)) for k,v in excerpt_for_rendering['queries'].items()}
excerpt_for_rendering['documents'] = {k: json.loads(irds_loader.map_doc(v)) for k,v in excerpt_for_rendering['documents'].items()}

with gzip.open(Path(output_path) / '.data-top-10-for-rendering.json.gz', 'w') as output_file:
with gzip.open(Path(output_path) / '.data-top-10-for-rendering.json.gz', 'wt') as output_file:
output_file.write(json.dumps(excerpt_for_rendering))


Expand Down

0 comments on commit d80269a

Please sign in to comment.