Open sajastu opened 5 years ago
Any update on this? I have the same error.
Hi, in order for pyrouge to work you need to download ROUGE-1.5.5, since pyrouge is just a wrapper for ROUGE-1.5.5.
ROUGE-1.5.5 is not included in pyrouge because I don't know if its license allows redistribution.
ROUGE-1.5.5 is not available anymore from its official website anymore, but you can download ROUGE-1.5.5 from various unofficial github repositories, e.g. https://github.com/andersjo/pyrouge/tree/master/tools/ROUGE-1.5.5
Once you've done that, you need to remember in which folder you downloaded ROUGE-1.5.5 and tell the absolute path of this folder to pyrouge using the pyrouge_set_rouge_path
command.
Thank you Benjamin for the reply.
I have done as you mentioned, downloaded ROUGE-1.5.5 and have set the absolute path. But at the end I am getting this error
.pkg_resources.ResolutionError: Script 'scripts/pyrouge_set_rouge_path' not found in metadata at '/usr/local/lib/python3.6/dist-packages/pyrouge-0.1.3.dist-info' ```
and the tests are failing with 11 errors.
To fix script not found
:
pip uninstall pyrouge
git clone https://github.com/bheinzerling/pyrouge
cd pyrouge
pip install -e .
pyrouge_set_rouge_path </absolute/path/to/ROUGE-1.5.5/directory>
python -m pyrouge.test
good!
To fix
script not found
:pip uninstall pyrouge git clone https://github.com/bheinzerling/pyrouge cd pyrouge pip install -e . pyrouge_set_rouge_path </absolute/path/to/ROUGE-1.5.5/directory> python -m pyrouge.test
$ pyrouge_set_rouge_path </absolute/path/to/ROUGE-1.5.5/directory> -bash: syntax error near unexpected token `newline'
$ pyrouge_set_rouge_path </absolute/path/to/ROUGE-1.5.5/directory> -bash: syntax error near unexpected token `newline'
You need to replace </absolute/path/to/ROUGE-1.5.5/directory>
with your actual path to ROUGE-1.5.5
.
Check my answer on Stack Overflow for more details.
Hi,
Thanks for the package. How do you handle this? : https://stackoverflow.com/questions/45894212/installing-pyrouge-gets-error-in-ubuntu