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


On 13 Jun, 2010,at 09:30 AM, liukai <[email protected]> wrote:

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 models
Start loading LanguageModel /home3/mht/liukai/moses-decoder/sample-models/lm/europarl.srilm.gz : [0.000] seconds
        ....................
Finished translating
End. : [2.000] seconds
 
But 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 -T
Defined parameters (per moses.ini or switch):
        config: moses.ini 
        glue-rule-type: 0 
        input-factors: 0 
        inputtype: 3 
        lmodel-file: 1 0 3 /home3/mht/liukai/moses-decoder/sample-models/lm/europarl.srilm.gz 
        mapping: 0 T 0 
        max-chart-span: 20 1000 
        non-terminals: X S 
        pop-limit: 1000 
        search-algorithm: 3 
        translation-details: 1 
        ttable-file: 2 0 0 1 /home3/mht/liukai/moses-decoder/sample-models/syntax-model/rules 
        ttable-limit: 20 
        weight-l: 0.5 
        weight-t: 0.5 
        weight-w: 0.0 
Loading lexical distortion models...have 0 models
Start loading LanguageModel /home3/mht/liukai/moses-decoder/sample-models/lm/europarl.srilm.gz : [0.000] seconds
ERROR:Language model type unknown. Probably not compiled into library
ERROR:no LM created. We probably don't have it compiled
 
I 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

Reply via email to