Hi,I am using Moses in combination with SRILM and IRSTLM for several language 
pairs.After building LMs with SRILM and training the phrase model, I try to 
translate a sentence, for example:
 echo "this is a small house" | /home/lingua/smt/moses/bin/moses -f 
model/moses.ini
This works well for each language pair.
Then I produce an IRSTLM binary LM for each language pair, for example: 
/home/lingua/smt/irstlm/bin/compile-lm 
complete_fr.truecased_unique_tok_clean.lm 
complete_fr.truecased_unique_tok_clean.blmln -s 
complete_fr.truecased_unique_tok_clean.blm 
complete_fr.truecased_unique_tok_clean.blm.mm
and I produce binary phrase tables and binary reordering tables:
gzip -cd fr-en/f_en.e_fr/model/phrase-table.gz | LC_ALL=C sort | 
/home/lingua/smt/moses/bin/processPhraseTable -ttable 0 0 - -nscores 5 -out  
fr-en/f_en.e_fr/model/phrase-tablegzip -cd 
fr-en/f_en.e_fr/model/reordering-table.wbe-msd-bidirectional-fe.gz | LC_ALL=C 
sort | /home/lingua/smt/moses/bin/processLexicalTable -out 
fr-en/f_en.e_fr/model/reordering-table
Then I create a copy of moses.ini (->moses-bin.ini) and set moses-bin.ini to 
use the binary files.

Now I try to translate a sentence with:
 echo "this is a small house" | TMP=/tmp /home/lingua/smt/moses/bin/moses -v 2 
-f model/moses-bin.ini

This works well for each language pair, except for the language pair f: en, e: 
fr.
The output is:
Defined parameters (per moses.ini or switch): config: model/moses-bin.ini 
distortion-file: 0-0 wbe-msd-bidirectional-fe-allff 6 
/home/lingua/Patricia/Corpora/Corpora_Biling/fr-en/f_en.e_fr/model/reordering-table
 distortion-limit: 6 input-factors: 0 lmodel-file: 1 0 3 
/home/lingua/Patricia/Corpora/Corpora_Monoling_Complete/fr/complete_fr.truecased_unique_tok_clean.blm.mm
 mapping: 0 T 0 ttable-file: 1 0 0 5 
/home/lingua/Patricia/Corpora/Corpora_Biling/fr-en/f_en.e_fr/model/phrase-table 
ttable-limit: 20 verbose: 2 weight-d: 0.3 0.3 0.3 0.3 0.3 0.3 0.3 weight-l: 
0.5000 weight-t: 0.20 0.20 0.20 0.20 0.20 weight-w: -1input type is: text 
inputLoading lexical distortion models...have 1 modelsCreating lexical 
reordering...weights: 0.300 0.300 0.300 0.300 0.300 0.300binary file loaded, 
default OFF_T: -1Start loading LanguageModel 
/home/lingua/Patricia/Corpora/Corpora_Monoling_Complete/fr/complete_fr.truecased_unique_tok_clean.blm.mm
 : [0.000] secondsIn LanguageModelIRST::Load: nGramOrder = 3Language Model Type 
of 
/home/lingua/Patricia/Corpora/Corpora_Monoling_Complete/fr/complete_fr.truecased_unique_tok_clean.blm.mm
 is 1blmtloadbin()lmtable::loadbin_dict()dictionary::loadtxt wrong entry was 
found (0) in position 1
I don't understand the reason for this error. Could you help me with this 
problem?
Thank you,Patricia
                                                                                
  
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to