Hi, if you have a large model, then it may not fit into memory and hence starting the decoder will just cause endless swapping. Look into the instructions for filtering and binarizing the models.
With regard to the single '&' at the end of a command - it instructs the command line to run the process in the background. To see what commands run in the background type "jobs" <enter>. -phi On Tue, Mar 19, 2013 at 4:19 PM, Per Tunedal <[email protected]> wrote: > > 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 _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
