Hi Liukai,
it looks like an error in the sample config file: SRILM is language model type 0, not 1. Try changing the lmodel-file line from
1 0 3 lm/europarl.srilm.gz
to
0 0 3 lm/europarl.srilm.gz
Phil
I had download the newest moses (moses-2010-04-26.tgz) and sample-models.tgz.And all is correct at the beginning:I use the SRILM and compiled is good .I run the demo as the manual said , and the pharse-model side is well:%../../trunk/moses-cmd/src/moses -f moses.ini -i in.................Loading lexical distortion models...have 0 modelsStart loading LanguageModel /home3/mht/liukai/moses-decoder/sample-models/lm/europarl.srilm.gz : [0.000] seconds....................Finished translatingEnd. : [2.000] secondsBut there are something wrong with the syntax-model side (something wrong in reading language model):%echo 'ein haus ist das' | ../../trunk/moses-chart-cmd/src/moses_chart -f moses.ini -TDefined parameters (per moses.ini or switch):config: moses.iniglue-rule-type: 0input-factors: 0inputtype: 3lmodel-file: 1 0 3 /home3/mht/liukai/moses-decoder/sample-models/lm/europarl.srilm.gzmapping: 0 T 0max-chart-span: 20 1000non-terminals: X Spop-limit: 1000search-algorithm: 3translation-details: 1ttable-file: 2 0 0 1 /home3/mht/liukai/moses-decoder/sample-models/syntax-model/rulesttable-limit: 20weight-l: 0.5weight-t: 0.5weight-w: 0.0Loading lexical distortion models...have 0 modelsStart loading LanguageModel /home3/mht/liukai/moses-decoder/sample-models/lm/europarl.srilm.gz : [0.000] secondsERROR:Language model type unknown. Probably not compiled into libraryERROR:no LM created. We probably don't have it compiledI confirm that the file "europarl.srilm.gz" is just there .And How to manage this problem ?2010-06-13
liukai_______________________________________________
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
