- Ubuntu一般自带perl,bash输入
perl -v
检查perl版本 - 输入
cpan -v
检查cpan(perl的包管理器)的版本,初次使用会提示需要配置,一路Enter即可 - 使用
sudo cpan install XML::DOM
安装必须的XML解析包 - 下载ROUGE-1.5.5,该资源可以在网上找到,与操作系统无关,下载后运行目录下的perl脚本
runROUGE-test.pl
,若它正常运行不报错则一切OK
下面是ROUGE-1.5.5内的安装说明,如果有添加环境变量、使用WordNet的需要,按照该说明操作即可。
(1) You need to have DB_File installed. If the Perl script complains
about database version incompatibility, you can create a new
WordNet-2.0.exc.db by running the buildExceptionDB.pl script in
the “data/WordNet-2.0-Exceptions” subdirectory. (2) You also need to install XML::DOM from http://www.cpan.org.
Direct link: http://www.cpan.org/modules/by-module/XML/XML-DOM-1.43.tar.gz.
You might need install extra Perl modules that are required by
XML::DOM. (3) Setup an environment variable ROUGE_EVAL_HO