Closed sergeyf closed 4 years ago
Hi Sergey,
Thanks for using this package and reporting this bug. The problem happened when one of the topics had no relevant documents in the qrels. It should be fixed now. Please update the package in your system to v0.0.43.
By the way, we have been looking for help to write unit tests for trectools. Once we have all the proper tests done, we can release version 1.0. Please feel free to help the community and grow this package!
Ah, glad that it is fixed!
Are unit tests mostly comparisons to the command line trec_eval tool?
That is correct. I started writing some code for that (please see https://github.com/joaopalotti/trectools/blob/master/unittests/testtreceval.py), but I could never continue. Please let me know if you are interested in helping the development.
Anyhow, as this bug is fixed, I will close this issue now.
Thanks!
It would be fun to help, but I'm not flush with time at the moment (job, family, etc). Sorry to say, but if I do have some time, I'll loop around and maybe make some tests!
Hello,
I have a situation where there large differences between some metrics computed using the official trec_eval (as called from
pytrec_eval
) andtrectools
. To reproduce, you can run the following (it will downloadfile.qrel
andfile.run
from gist):Expected output:
The code: