要执行pyrouge
,我应该通过运行此命令生成wordnet db
文件(在Windows上):
cd pyrouge-master\tools\ROUGE-1.5.5\data
perl WordNet-2.0-Exceptions/buildExeptionDB.pl ./WordNet-2.0-Exceptions ./smart_common_words.txt ./WordNet-2.0.exc.db
但我收到了这个错误:
Can't locate DB_File.pm in @INC (you may need to install the DB_File module) (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at WordNet-2.0-Exceptions/build
ExeptionDB.pl line 2.
BEGIN failed--compilation aborted at WordNet-2.0-Exceptions/buildExeptionDB.pl l
ine 2.
所以我尝试使用CPAN cpan -i DB_File
安装DB_File,但是我收到了这个错误
version.c:30:16: fatal error: db.h: No such file or directory
compilation terminated.
dmake.exe: Error code 129, while making 'version.o'
PMQS/DB_File-1.841.tar.gz
C:\Perl64\site\bin\dmake.exe -- NOT OK