Hi Tomas,
IRSTLM actually returns 0 if it succeeds,
It returns values greater than 0, if something fails and if the usage info are
required.
Which is the cmd actually executed by train-recaser.perl?
Have you tried to run this command separately in a shell?
What does it return?
The problem could be related to the usage of the "fixed" temporary directory
"/tmp"
Do you have permission to write on it?
cheers,
Nicola
On May 29, 2012, at 12:53 PM, Tomas Hudik wrote:
Hi there,
It seems newer versions of IRSTLM (build-lm.sh) ends up with exit code 1. But
if build-lm.sh exits with something else than 0 train-recaser fails.
It is due to the command:
system($cmd) == 0 || die("Language model training failed with error " . ($? >>
8) . "\n");
which should be changed to
system($cmd) == 256 || die("Language model training failed with error " . ($?
>> 8) . "\n");
or, maybe even better would be to test the existence of output file
(cased_irstlm.gz)
cheers, Tomas
_______________________________________________
Moses-support mailing list
[email protected]<mailto:[email protected]>
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support