implentment by pytorch
-
collection.train.sampled.tsv
pid passage
-
queries.train.sampled.tsv
qid query
-
qidpidtriples.train.sampled.tsv
qid positive_pid negative_pid
-
msmarco-passagetest2019-43-top1000.tsv
qid pid query passage
-
msmarco-passagetest2020-54-top1000.tsv
qid pid query passage
train.sh
evaluate.sh
eval.py
or you can eval usr offical offered C++ script
download from https://trec.nist.gov/trec_eval/
tar xzvf trec_eval-9.0.7.tar.gz
cd trec_eval-9.0.7
make
./trec_eval-9.0.7/trec_eval -m qrels model_result
trec_eval.sh