Dear all:
 
 
I have generated KenLM binary file from moses-trunk:
handson@handson-virtual-machine:/home/tianliang/research/moses-trunk/scripts/tar
get/scripts-20110222-0013/training/model-port-chn-20121201$ 
/home/tianliang/research/moses-trunk/kenlm/build_binary sample.lm sample.binary
Reading sample.lm
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
 
 
I also create binary file of reordering-table
handson@handson-virtual-machine:/home/tianliang/research/moses-server/scripts/ta
rget/scripts-20110125-2256/training/model-port-chn-20121202$ 
/home/tianliang/research/moses-server/misc/processLexicalTable -in 
reordering-table.gz -out reordering-table
processLexicalTable v0.1 by Konrad Rawlik
processing reordering-table.gz to reordering-table.*
......................................................................................................................................................................................................................................
 
I also create binary file of phrase-table
handson@handson-virtual-machine:~$ cd 
/home/tianliang/research/moses-server/scripts/target/scripts-20110125-2256/training/model-port-chn-20121202
handson@handson-virtual-machine:/home/tianliang/research/moses-server/scripts/target/scripts-20110125-2256/training/model-port-chn-20121202$
 export LC_ALL=C
handson@handson-virtual-machine:/home/tianliang/research/moses-server/scripts/ta
rget/scripts-20110125-2256/training/model-port-chn-20121202$ zcat 
phrase-table.gz | sort | 
/home/tianliang/research/moses-server/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
 
 
I try to run moses in moses-server:  
handson@handson-virtual-machine:/home/tianliang/research/moses-server/scripts/ta
rget/scripts-20110125-2256/training/model-port-chn-20121202$ ./mosesmt -f 
moses4.ini -threads 3                   
Defined parameters (per moses.ini or switch):
 config: moses4.ini 
 distortion-file: 0-0 msd-bidirectional-fe 6 
/home/tianliang/research/moses-server/scripts/target/scripts-20110125-2256/training/model-port-chn-20121202//reordering-table
 
 distortion-limit: 6 
 input-factors: 0 
 lmodel-file: 8 0 5 
/home/tianliang/research/moses-server/scripts/target/scripts-20110125-2256/training/model-port-chn-20121202/sample.binary
 
 mapping: 0 T 0 
 ttable-file: 0 0 5 
/home/tianliang/research/moses-server/scripts/target/scripts-20110125-2256/training/model-port-chn-20121202//phrase-table
 
 ttable-limit: 20 
 weight-d: 0.3 0.3 0.3 0.3 0.3 0.3 0.3 
 weight-l: 0.5000 
 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.3 0.3 0.3 0.3 0.3 0.3 
binary file loaded, default OFF_T: -1
Created lexical orientation reordering
Start loading LanguageModel 
/home/tianliang/research/moses-server/scripts/target/scripts-20110125-2256/training/model-port-chn-20121202/sample.binary
 : [0] seconds
ERROR:Language model type unknown. Probably not compiled into library
ERROR:no LM created. We probably don't have it compiled
handson@handson-virtual-machine:/home/tianliang/research/moses-server/scripts/ta
rget/scripts-20110125-2256/training/model-port-chn-20121202$ 
 
What should I do? Thanks!
 
Best Regards,
 
                                                                                
        Fong Pui Chi
 
 
 
 
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to