Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnweiwei authored Feb 24, 2024
1 parent d48ecce commit 081885e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ for item in tqdm(rank_results):
# Evaluate nDCG@10
from trec_eval import EvalFunction
temp_file = tempfile.NamedTemporaryFile(delete=False).name
write_eval_file(new_results, temp_file)
EvalFunction.eval(['-c', '-m', 'ndcg_cut.10', 'dl19-passage', temp_file])
EvalFunction.write_file(new_results, temp_file)
EvalFunction.main('dl19-passage', temp_file)
```

Run evaluation on all benchmarks
Expand Down

0 comments on commit 081885e

Please sign in to comment.