Skip to content

Commit

Permalink
Update run_evaluation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnweiwei authored Feb 24, 2024
1 parent 081885e commit faae2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

# Create an empty text file to write results, and pass the name to eval
temp_file = tempfile.NamedTemporaryFile(delete=False).name
EvalFunction.write_file(reranked_data, temp_file)
EvalFunction.write_file(new_results, temp_file)
EvalFunction.main(THE_TOPICS[data], temp_file)


Expand Down Expand Up @@ -127,5 +127,5 @@
from trec_eval import EvalFunction

temp_file = tempfile.NamedTemporaryFile(delete=False).name
EvalFunction.write_file(reranked_data, temp_file)
EvalFunction.write_file(new_results, temp_file)
EvalFunction.main(THE_TOPICS[data], temp_file)

0 comments on commit faae2dc

Please sign in to comment.