arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.01597cs.IR
收藏

Pytrec_eval:一个极快的trec_eval Python接口

Pytrec_eval: An Extremely Fast Python Interface to trec_eval

Christophe Van Gysel, Maarten de Rijke

摘要:

我们介绍了pytrec_eval,一个tree_eval信息检索评估工具包的Python接口。pytrec_eval在Python中将trec_eval的引用实现公开为原生扩展。我们表明,pytrec_eval比从Python内部调用trec_eval作为子进程快一个数量级。与NDCG的原生Python实现相比,pytrec_eval在实际大小的排名中速度快了一倍。最后,我们在一个应用程序中证明了它的有效性,其中pytrec_eval与Pyndri和OpenAI Gym相结合,使用Q学习来学习查询扩展。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑