HiThis sounds like a bug in irstlm. Shouldn't Unix commands report 0 on 
success?Cheers - BarryQuoting Tomas Hudik  on Tue, 29 May 2012 10:53:08 +0000:> 
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 >

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to