【发布时间】:2013-10-31 07:18:18
【问题描述】:
我安装了 Strawberry Perl 以在 Windows 中运行 rouge 程序。但是当我想运行我的程序时,我会收到一条错误消息,您可以在图像上看到:
The system can't find the path specified.
我的代码正在尝试运行“ROUGE-1.5.5.pl”,但我认为系统找不到该文件。所以我想也许我没有正确初始化路径?
我将代码更改为:
#!/usr/bin/perl
use Cwd;
$curdir=getcwd;
$ROUGE="..\ROUGE-1.5.5.pl";
chdir("sample-test");
$cmd="$ROUGE -e ..\data -c 95 -2 -1 -U -r 1000 -n 4 -w 1.2 -a DUC2002-ROUGE.in.26.spl.xml > ..\sample-output\output.out";
print $cmd,"\n";
system($cmd);
chdir($curdir);
我收到此错误: 在 C:\runROUGE-test.pl 第 7 行,“$ROUGE”附近的 \o{} 上缺少大括号 执行 C:\runROUGE-test.pl 由于编译错误而中止。
【问题讨论】:
-
复制/粘贴相关代码和错误消息将比图像更好。