nlpyang / PreSumm

code for EMNLP 2019 paper Text Summarization with Pretrained Encoders
MIT License
1.29k stars 465 forks source link

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

Open NandaKishoreJoshi opened 4 years ago

NandaKishoreJoshi commented 4 years ago

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:

dhouhaomri commented 4 years ago

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

kush-2418 commented 2 years ago

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