kenlm doesn't build ARPA files; you will need SRILM/IRSTLM to build one. So for example,
1. Compile Moses. I put this before the install SRI step to emphasize that Moses does not need to be linked to SRI. 2. Install SRILM 3. Run SRILM's ngram program to generate an ARPA file 4. Pass --lm 0:5:foo.arpa I'm assuming your processor is at least a Pentium II (last release in 1999) so you should be using i686 with SRI. I've never tried to compile it for 32-bit, so can't be much more help here. On 01/05/11 11:52, Roberto Rios wrote: > hello moses support.... > > 1 ) i am trying to install moses for the first time and i am having a > hard time understanding LM....i though if I use kenlm i should not have > to use srilm or irst..i just change my moses.ini lm to 8 and magic > happens...but when training after preparing corpus to create the > language model i get this error....i guess is asking for my language > model already created..but how can i create it? is it kenlm that i have > to use or srilm? is this the right command for training? > > /translation/moses/scripts/training$ train-model.perl -root-dir . > --corpus /translation/corpustest/docetokenlower --f es --e en > Using SCRIPTS_ROOTDIR: /translation/moses/scripts > Using single-thread GIZA > ERROR: use --lm factor:order:filename to specify at least one language > model at ./train-model.perl line 302. > > gcc version 4.4.3 > i486-linux-gnu 32bit > ubuntu 10.04 > > > > ---------------------------- > > 2 ) if i have to use SRILM which common file should i use for my i486 > --> i686 maybe? if so what changes do i have to make to the file. > when i make World > > obe...@aaron:/translation/srilm$ make World > mkdir include lib bin > mkdir: cannot create directory `include': File exists > mkdir: cannot create directory `lib': File exists > mkdir: cannot create directory `bin': File exists > make: [dirs] Error 1 (ignored) > make init > make[1]: Entering directory `/translation/srilm' > for subdir in misc dstruct lm flm lattice utils; do \ > (cd $subdir/src; make SRILM=/translation/srilm MACHINE_TYPE=i686 > OPTION= MAKE_PIC= init) || exit 1; \ > done > make[2]: Entering directory `/translation/srilm/misc/src' > cd ..; /translation/srilm/sbin/make-standard-directories > /bin/sh: /translation/srilm/sbin/make-standard-directories: not found > make[2]: [init] Error 127 (ignored) > make ../obj/i686/STAMP ../bin/i686/STAMP > make[3]: Entering directory `/translation/srilm/misc/src' > mkdir ../obj/i686/ > touch ../obj/i686/STAMP > mkdir ../bin/i686/ > mkdir: cannot create directory `../bin/i686/': No such file or directory > make[3]: [../bin/i686/STAMP] Error 1 (ignored) > touch ../bin/i686/STAMP > touch: cannot touch `../bin/i686/STAMP': No such file or directory > make[3]: *** [../bin/i686/STAMP] Error 1 > make[3]: Leaving directory `/translation/srilm/misc/src' > make[2]: *** [init] Error 2 > make[2]: Leaving directory `/translation/srilm/misc/src' > make[1]: *** [init] Error 1 > make[1]: Leaving directory `/translation/srilm' > make: *** [World] Error 2 > > > Thank You > Roberto > > > > > _______________________________________________ > 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
