Information Retrieval Kit - Utilities for IR in python
IR Kit can be installed via pip:
pip3 install ir-kit
For generating precision-recall curves and plotting the average precision of a topic there is trecplot:
trecplot --help
Dealing with trec-related files is done using the trec
package. This package contains classes for dealing with qrel
files, trec run files, and trec result files.
Additionally, the query
package contains classes and functions for working with queries. Initially, there is just
ElasticSearch, but maybe more can be added later (?).