Marwen,
Be careful with mgiza. If you only install mgiza without
giza++, you won't be able to run train-model.perl. Train-model.perl
looks for the binary snt2cooc.out, but mgiza creates a binary snt2cooc
with a different command line syntax.
Always installing giza++ is one
solutions. If you're like us and don't want to require giza++, you can
use this bash wrapper. Just name it snt2cooc.out and put it in your bin
folder with the mgiza snt2cooc file.
#! /bin/bash
${0%/*}/snt2cooc
/dev/stdout $1 $2 $3
Of course, the best solution would be to update
train-model.perl logic to execute the right binary with the appropriate
syntax. Regrettably, we lack the Perl skills. So, maybe you or someone
else can make the edits?
Tom
On Tue, 27 Dec 2011 12:10:28 +0700,
Hieu Hoang wrote:
hi marwen
you're quite right, i've change the git
code
https://github.com/moses-smt/mosesdecoder/commit/94b4ab16c7e0519f1483a3a5a67a3ec51a3d0043
[1]
On Tue, Dec 27, 2011 at 7:10 AM, Marwen Azouzi wrote:
Hello
Moses,
FILE train-model.perl LINE 187 :
$GIZA = "$BINDIR/mgizapp";
This line shouldn't be $GIZA = "$BINDIR/mgiza"; since the the MGIZA
binary file's default name is "mgiza" ? (I use the latest version of
Moses from Git)
Anyways, changing it will enable the multi-threading
training.
Cheers
Marwen.
_______________________________________________
Moses-support mailing list
[email protected]
[3]
http://mailman.mit.edu/mailman/listinfo/moses-support
[4]
Links:
------
[1]
https://github.com/moses-smt/mosesdecoder/commit/94b4ab16c7e0519f1483a3a5a67a3ec51a3d0043
[2]
mailto:[email protected]
[3] mailto:[email protected]
[4]
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support