thunlp / OpenMatch

An Open-Source Package for Information Retrieval.
MIT License
447 stars 42 forks source link

what is the parameter score? #13

Closed gm0616 closed 3 years ago

gm0616 commented 3 years ago

Hi, After generating the feature of the first passage, I wanna compute the ranking score using the weights as the following script, but encounter the error about f0.score, which I can not find any mention.

java -jar LeToR/RankLib-2.1-patched.jar -load checkpoints/f_maxp.ca -rank features/bert-base_ance_eval_maxp_features -score f0.score

Error in RankerFactory.load(): java.lang.NullPointerException Traceback (most recent call last): File "LeToR/gen_trec.py", line 48, in main() File "LeToR/gen_trec.py", line 19, in main with open('f' + str(args.k+1) + '.score', 'r') as r: FileNotFoundError: [Errno 2] No such file or directory: 'f0.score'

zkt12 commented 3 years ago

Hi, Was the f0.score generated after running this script? This error occurs in running gen_trec.py, which aims to generate TREC format ranking list from f0.score, but the f0.score file is not found.

Kaitao