cvangysel / pytrec_eval

pytrec_eval is an Information Retrieval evaluation tool for Python, based on the popular trec_eval.
http://ilps.science.uva.nl/
MIT License
282 stars 32 forks source link

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

Open cmacdonald opened 5 years ago

cmacdonald commented 5 years ago

or additionally, dataframe of the same format.

cvangysel commented 5 years ago

Do you mean like the following?

cmacdonald commented 5 years ago

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

plopezgarcia commented 5 years ago

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.