Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sajastu opened this issue Dec 3, 2018 · 7 comments

Comments

@sajastu
Copy link

sajastu commented Dec 3, 2018

Hi,

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

@sanjita-suresh
Copy link

Any update on this? I have the same error.

@bheinzerling
Copy link
Owner

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
Copy link

sanjita-suresh commented May 1, 2019 via email

@astariul
Copy link

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
Copy link

good!

@Vera-wz
Copy link

Vera-wz commented Aug 14, 2023

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
Copy link

astariul commented Aug 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants