Closed ghost closed 7 years ago
It looks like pyrouge generated all the files necessary for running ROUGE, but the actual command for running it fails.
You can try running ROUGE manually, with this in a console:
..\RELEASE-1.5.5\ROUGE-1.5.5.pl -e ...\RELEASE-1.5.5\data -c 95 -2 -1 -U -r 1000 -n 4 -w 1.2 -a -m C:\Users...\AppData\Local\Temp\tmpwbiw8z7b\rouge_conf.xml
If this fails, it means that Perl has probably not been installed correctly on your system. This is what you should see when you run the commands
assoc .pl type PerlScript
in a console:
C:>assoc .pl .pl=PerlScript
C:>ftype PerlScript PerlScript=C:\bin\perl.exe "%1" %*
If this works, then .py files may not have been correctly associated with python.exe on your system. You can check with this:
C:>assoc .py .py=Python.File
C:>ftype Python.File Python.File="C:\Python27\python.exe" "%1" %*
Thanks for you reply! I have installed perl properly. I wonder what is the input (system and model) command? And what is the proper format of the file? Same with the one of your code? Thx!
Before the error happens, you should see something like this:
Running ROUGE with command ..\RELEASE-1.5.5\ROUGE-1.5.5.pl -e ...\RELEASE-1.5.5\data -c 95 -2 -1 -U -r 1000 -n 4 -w 1.2 -a -m C:\Users...\AppData\Local\Temp\tmpwbiw8z7b\rouge_conf.xml
This is the command pyrouge uses to call ROUGE (the paths will be different on your system).
You can run ROUGE manually by copy&pasting this command into a terminal and then see if this works or not.
So the rouge_conf contains the processed data?
@bheinzerling Sorry, I just found that the output of assoc .pl
is good but the one of ftype PerlScript
is File type 'PerlScript' not found or no open command associated with it.
But I have downloaded and installed perl in a proper way. Why this happens?
Something like this should work:
ftype PerlScript "C:\bin\perl.exe "%1" %*"
(replace C:\bin\perl.exe with the perl.exe path on your system)