Hi Tomas I would guess that if you give build-lm.sh a directory that doesn't already exist then it will create it and delete it afterwards.
However I don't think irstlm should be returning failure when it fails to delete the temporary directory, Cheers - Barry Sent from my ZX81 ----- Reply message ----- From: "Hieu Hoang" <fishandfrol...@gmail.com> Date: Thu, May 31, 2012 11:30 Subject: [Moses-support] cooperation IRSTLM and train_recaser.perl To: <moses-support@mit.edu> The irst wrapper in moses creates a temporary folder that is then deleted by build-lm.sh . scripts/generic/trainlm-irst.perl line 44 On 31/05/2012 09:57, Tomas Hudik wrote: > Hi there, > > Command invoking IRSTLM involves option -t /tmp (train_recaser.perl 97) > (what temporary dir should be used). > Irstlm (build-lm.sh) is trying to remove it (rmdir) at the end. However, it > would delete whole /tmp (if run under root) or, it fails and whole > build-lm.sh fails as well (returns $? Greater than 0) and train_recaser.perl > will stop. > > Some other (newly created) dir for -t option should be chosen in order to > avoid fail status in recaser. > > > Cheers, Tomas > > > > > > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support > _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support