Closed Yastil closed 4 years ago
Hi, I am trying to get the msmarco_file into the standard TREC format; query_id Q0 doc-id rank score exp
I tried using; msmarco_file.write("\t".join((query_id, 'Q0', doc_id, str(rank), str(score[doc_idx]), 'run1')) + "\n")
However the scores appear to be negative, which causes trec_eval to fail. Is there perhaps another variable that should be used to obtain the score for each query-document pair?
You can do score = 1/rank
score = 1/rank
Thank you x 2!
Hi, I am trying to get the msmarco_file into the standard TREC format; query_id Q0 doc-id rank score exp
I tried using; msmarco_file.write("\t".join((query_id, 'Q0', doc_id, str(rank), str(score[doc_idx]), 'run1')) + "\n")
However the scores appear to be negative, which causes trec_eval to fail. Is there perhaps another variable that should be used to obtain the score for each query-document pair?