bheinzerling / pyrouge

A Python wrapper for the ROUGE summarization evaluation package
MIT License
250 stars 71 forks source link

Exception: Cannot set data directory because the path /absolute/path/to/ROUGE-1.5.5/directory/data does not exist. #25

Open sajastu opened 5 years ago

sajastu commented 5 years ago

Hi,

Thanks for the package. How do you handle this? : https://stackoverflow.com/questions/45894212/installing-pyrouge-gets-error-in-ubuntu

sanjita-suresh commented 5 years ago

Any update on this? I have the same error.

bheinzerling commented 5 years ago

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.

sanjita-suresh commented 5 years ago

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.
astariul commented 5 years ago

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
commencement commented 4 years ago

good!

Vera-wz commented 1 year ago

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'

astariul commented 1 year ago

$ 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.