joaopalotti / trectools

A simple toolkit to process TREC files in Python.
https://pypi.python.org/pypi/trectools
BSD 3-Clause "New" or "Revised" License
167 stars 31 forks source link

Command not found: trec_eval #2

Closed armancohan closed 5 years ago

armancohan commented 5 years ago

It seems the NIST trec_eval executable is not installed through pip install trectools

    656             except OSError as e:
    657                 if e.errno == errno.ENOENT:
--> 658                     raise ValueError('Command not found: %s' % self.args[0])
    659             except Exception as e:  #pragma: no cover
    660                 logger.exception('Popen call failed: %s: %s', type(e), e)

ValueError: Command not found: trec_eval
armancohan commented 5 years ago

The problem was that the script expects trec_eval executable in the path. This information is missing in the README file.

joaopalotti commented 5 years ago

Thanks for using our package and reporting this problem, Arman. I have actually implemented most of the trec_eval evaluation measures locally, which eliminates the use of trec_eval. However, I have not had the chance to commit this yet. It is likely to be committed sometime during this summer.

joaopalotti commented 5 years ago

H @acohan,

You can pull the latest version of trectools. Hope everything from trec_eval that you need is already implemented.

Cheers,

Joao