Hello everyone,
I'm emailing this in case anyone in the future is trying to get the
recaser script working with IRSTLM. I couldn't find any record of it on
the mailing list (or in the various FAQs), so perhaps it will be
helpful.
First replace
#my $cmd = "$NGRAM_COUNT -text $CORPUS -lm $DIR/cased.srilm.gz
-interpolate -kndiscount";
with
my $cmd = "/path/to/irstlm/bin/build-lm.sh -t /tmp -i $CORPUS -n 3
-o $DIR/cased.irstlm.gz";
in train-recaser.perl
Then after you've run the training, edit the file recaser/moses.ini and
change
0 1 3 /path/to/recaser//cased.irstlm.gz
to
1 0 3 /path/to/recaser//cased.irstlm.gz
That's all. It might seem obvious, but it took me a bit of fiddling to
work out.
Regards,
Fran
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support