0

I encountered a problem when I set up pyrouge on Google Colab. I run

 !which perl
!perl runROUGE-test.pl

And it throw an error:

Cannot open exception db file for reading: mypath/ROUGE-1.5.5/RELEASE-1.5.5/data/WordNet-2.0.exc.db

I have tried this way

os.chdir("data/WordNet-2.0-Exceptions/")
!sudo rm WordNet-2.0.exc.db # only if exist
!perl ./buildExeptionDB.pl . exc WordNet-2.0.exc.db

os.chdir("../")
!sudo rm WordNet-2.0.exc.db # only if exist
!sudo ln -s WordNet-2.0-Exceptions/WordNet-2.0.exc.db WordNet-2.0.exc.db

But it does not work. I want to know how to solve it on Google Colab And my Installation references is

taro
  • 11
  • 3

0 Answers0