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]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to