Dear all: First, I generated executable file: build_binary from the command: wget -O - http://kheafield.com/code/kenlm.tar.gz |tar xz cd kenlm ./compile.sh and generated executable file: build_binary and I use build_binary to generate binary file. I have genarated binary file - sample.binary: handson@handson-virtual-machine:/home/tianliang/research/srilm/bin/i686-gcc4/tes t$ ./build_binary sample.lm sample.binary Reading sample.arpa ----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100 **************************************************************************************************** SUCCESS and file: phrase-table handson@handson-virtual-machine:/home/tianliang/research/moses-trunk/scripts/tar get/scripts-20110222-0013/training/model-port-chn-20121201$ zcat phrase-table.gz | sort | /home/tianliang/research/moses-trunk/misc/processPhraseTable -ttable 0 0 - -nscores 5 -out phrase-table processing ptree for stdin ..................................................[phrase:500000] .............................................distinct source phrases: 957093 distinct first words of source phrases: 21087 number of phrase pairs (line count): 2305296 WARNING: there are src voc entries with no phrase translation: count 3097 There exists phrase translations for 17990 entries And Then, I start Moses like this: handson@handson-virtual-machine:/home/tianliang/research/moses-trunk/scripts/target/scripts-20110222-0013/training/model-port-chn-20121201$ ./mosesserver -f moses3.ini -threads 3 --server-port 9083 Defined parameters (per moses.ini or switch): config: moses3.ini distortion-file: 0-0 wbe-msd-bidirectional-fe-allff 6 /home/tianliang/research/moses-trunk/scripts/target/scripts-20110222-0013/training/model-port-chn-20121201//reordering-table.wbe-msd-bidirectional-fe.gz distortion-limit: 6 input-factors: 0 lmodel-file: 8 0 5 /home/tianliang/research/moses-trunk/scripts/target/scripts-20110222-0013/training/model-port-chn-20121201/sample.binary mapping: 0 T 0 threads: 3 translation-systems: pc D 0 R 0 L 0 ttable-file: 1 0 0 5 /home/tianliang/research/moses-trunk/scripts/target/scripts-20110222-0013/training/model-port-chn-20121201//phrase-table ttable-limit: 20 weight-d: 0.3 weight-l: 0.5000 weight-lr: 0.1 0.1 0.1 0.1 0.1 0.1 weight-t: 0.2 0.2 0.2 0.2 0.2 weight-w: -1 Loading lexical distortion models...have 1 models Creating lexical reordering... weights: 0.1 0.1 0.1 0.1 0.1 0.1 Loading table into memory...done. Start loading LanguageModel /home/tianliang/research/moses-trunk/scripts/target/scripts-20110222-0013/training/model-port-chn-20121201/sample.binary : [35] seconds terminate called after throwing an instance of 'lm::FormatLoadException' what(): Binary file has version 5 but this implementation expects version 4 so you'll have to rebuild your binary LM from the ARPA. Sorry. 已放弃 What should I do? Thanks! Best Regards, Fong Pui Chi
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
