pytrec_eval icon indicating copy to clipboard operation
pytrec_eval copied to clipboard

Would be nice to support directly loading TREC run and qrel files directly

Open cmacdonald opened this issue 7 years ago • 3 comments

or additionally, dataframe of the same format.

cmacdonald avatar Nov 05 '18 18:11 cmacdonald

Do you mean like the following?

  • https://github.com/cvangysel/pytrec_eval/blob/master/py/init.py#L16
  • https://github.com/cvangysel/pytrec_eval/blob/master/py/init.py#L28
  • https://github.com/cvangysel/pytrec_eval/blob/master/examples/trec_eval.py#L10

cvangysel avatar Nov 05 '18 22:11 cvangysel

Yes, I realised that after. Documenting these somewhere would help. Dataframe API would be good though :-)

cmacdonald avatar Nov 05 '18 22:11 cmacdonald

Hi everyone. I think I might have already done part of the job.

This year I participated in the Precision Medicine track I wrote some small utilities on top of pytrec_eval that use dataframes as the main data structure and deal with little issues like:

You can find a full example of usage here here.

Some things are still dependent on my code, but I think most of it could be generalized and reused? Let me know if I can help.

plopezgarcia avatar Nov 28 '18 15:11 plopezgarcia