Hi,
How do I test to translate a text file?

On the base line page I've found:

"You can test the decoder by first translating the test set (takes a wee
while) then running the bleu script on it:

 nohup nice ~/mosesdecoder/bin/moses -f
 ~/working/filtered-newstest2011/moses.ini <
 ~/corpus/newstest2011.true.fr \
   > ~/working/newstest2011.translated.en 2> ~/working/newstest2011.out &
 ~/mosesdecoder/scripts/generic/multi-bleu.perl -lc
 ~/corpus/newstest2011.true.en < ~/working/newstest2011.translated.en"

What if I just want the translation? Will the following do the trick:

nohup nice ~/mosesdecoder/bin/moses -f
~/working/filtered-newstest2011/moses.ini <
~/corpus/newstest2011.true.fr \
   > ~/working/newstest2011.translated.en 2> ~/working/newstest2011.out

It takes for ever,  I don't know if somethings gone wrong.

BTW I've just began trying to learn bash, but I cannot figure out what's
the use of all those '&':s.

1)  nohup nice ~/mosesdecoder/scripts/training/train-model.perl 
-root-dir train -corpus ~/corpus/news-commentary-v7.fr-en.clean \
   -f fr -e en -alignment grow-diag-final-and -reordering
   msd-bidirectional-fe  \ 
   -lm 0:3:$HOME/lm/news-commentary-v7.fr-en.blm.en:8 -external-bin-dir
   ~/mosesdecoder/tools >& training.out &

'>& training.out &   Why those  '&':s?

Yours,
Per Tunedal
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to