PreSumm icon indicating copy to clipboard operation
PreSumm copied to clipboard

No such file or directory: '/root/.pyrouge/settings.ini' on Google colab

Open NandaKishoreJoshi opened this issue 4 years ago • 2 comments

getting the below error while trying to run pyrouge to calculate ROUGE on colab image

The above error is obtained at PreSumm/src/others/pyrouge.py", line 453, in __get_rouge_home_dir_from_settings with open(self._settings_file) as f:

NandaKishoreJoshi avatar Jun 12 '20 21:06 NandaKishoreJoshi

Hi, run this command python -m pyrouge.test if you get errors so you can fellow these 6 steps. Maybe this could help you https://stackoverflow.com/questions/45894212/installing-pyrouge-gets-error-in-ubuntu

dhouhaomri avatar Jun 13 '20 11:06 dhouhaomri

Follow these steps

pip install pyrouge --upgrade pip install https://github.com/bheinzerling/pyrouge/archive/master.zip pip install pyrouge pip show pyrouge git clone https://github.com/andersjo/pyrouge.git pyrouge_set_rouge_path '/hdd1/kush/Ultrasound/pyrouge/tools/ROUGE-1.5.5'

cd pyrouge/tools/ROUGE-1.5.5/data rm WordNet-2.0.exc.db cd WordNet-2.0-Exceptions rm WordNet-2.0.exc.db ./buildExeptionDB.pl . exc WordNet-2.0.exc.db cd ../

ln -s WordNet-2.0-Exceptions/WordNet-2.0.exc.db WordNet-2.0.exc.db

python3 -m pyrouge.test

kush-2418 avatar Jul 12 '22 12:07 kush-2418