Pytrec_eval: An Extremely Fast Python Interface to trec_eval

05/04/2018
by   Christophe Van Gysel, et al.
0

We introduce pytrec_eval, a Python interface to the tree_eval information retrieval evaluation toolkit. pytrec_eval exposes the reference implementations of trec_eval within Python as a native extension. We show that pytrec_eval is around one order of magnitude faster than invoking trec_eval as a sub process from within Python. Compared to a native Python implementation of NDCG, pytrec_eval is twice as fast for practically-sized rankings. Finally, we demonstrate its effectiveness in an application where pytrec_eval is combined with Pyndri and the OpenAI Gym where query expansion is learned using Q-learning.

READ FULL TEXT
research
01/03/2017

Pyndri: a Python Interface to the Indri Search Engine

We introduce pyndri, a Python interface to the Indri search engine. Pynd...
research
11/23/2015

A Python Extension for the Massively Parallel Multiphysics Simulation Framework waLBerla

We present a Python extension to the massively parallel HPC simulation t...
research
08/21/2012

Minerva and minepy: a C engine for the MINE suite and its R, Python and MATLAB wrappers

We introduce a novel implementation in ANSI C of the MINE family of algo...
research
03/15/2023

IMPACT: A Toolchain for Nonlinear Model Predictive Control Specification, Prototyping, and Deployment

We present IMPACT, a flexible toolchain for nonlinear model predictive c...
research
01/29/2013

PyXNAT: XNAT in Python

As neuroimaging databases grow in size and complexity, the time research...
research
05/03/2016

TheanoLM - An Extensible Toolkit for Neural Network Language Modeling

We present a new tool for training neural network language models (NNLMs...

Please sign up or login with your details

Forgot password? Click here to reset