Hi Mauro,

The weights for LM1 and LM2 are missing in your config file. You need to
add them in the [weight] section.

# core weights
[weight]
Distortion0= 0.3 
UnknownWordPenalty0= 1 
WordPenalty0= -1 
TranslationModel0= 0.2 0.2 0.2 0.2
PhrasePenalty0= 0.2
LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3 
LM0= 0.2
LM1= 0.2 
LM2= 0.2 

Cheers,
Matthias



On Tue, 2014-05-27 at 17:36 +0200, Mauro Zanotti wrote:
> Dear all,
> 
> 
> I launched an experiment in ems, I created 3 lm and in the decode
> phase I get the following error (from EVALUATION_test_decode.2.STDERR
> file)
> 
> 
> line=Distortion
> line=IRSTLM name=LM0 factor=0
> path=/home/user/opt/casmacat/moses/scripts/ems/example_002/lm/toy.binlm.2 
> order=5
> line=IRSTLM name=LM1 factor=0
> path=/home/user/opt/casmacat/moses/scripts/ems/example_002/lm/nc.binlm.2 
> order=5
> Exception: moses/ScoreComponentCollection.cpp:242 in void
> Moses::ScoreComponentCollection::Assign(const Moses::FeatureFunction*,
> const std::vector<float>&) threw util::Exception'.
> Feature function LM1 specified 1 dense scores or weights. Actually has
> 0
> 
> 
> The full ini file generated is
> 
> 
> #########################
> ### MOSES CONFIG FILE ###
> #########################
> 
> 
> # input factors
> [input-factors]
> 0
> 
> 
> # mapping steps
> [mapping]
> 0 T 0
> 
> 
> [distortion-limit]
> 6
> 
> 
> # feature functions
> [feature]
> UnknownWordPenalty
> WordPenalty
> PhrasePenalty
> PhraseDictionaryBinary name=TranslationModel0 table-limit=20
> num-features=4
> path=/home/user/opt/casmacat/moses/scripts/ems/example_002/evaluation/test.filtered.2/phrase-table.0-0.1.1
>  input-factor=0 output-factor=0 
> LexicalReordering name=LexicalReordering0 num-features=6
> type=wbe-msd-bidirectional-fe-allff input-factor=0 output-factor=0
> path=/home/user/opt/casmacat/moses/scripts/ems/example_002/evaluation/test.filtered.2/reordering-table.2.wbe-msd-bidirectional-fe
>  
> Distortion
> IRSTLM name=LM0 factor=0
> path=/home/user/opt/casmacat/moses/scripts/ems/example_002/lm/toy.binlm.2 
> order=5
> IRSTLM name=LM1 factor=0
> path=/home/user/opt/casmacat/moses/scripts/ems/example_002/lm/nc.binlm.2 
> order=5
> IRSTLM name=LM2 factor=0
> path=/home/user/opt/casmacat/moses/scripts/ems/example_002/lm/europarl.binlm.2
>  order=5
> 
> 
> # core weights
> [weight]
> Distortion0= 0.3 
> UnknownWordPenalty0= 1 
> WordPenalty0= -1 
> TranslationModel0= 0.2 0.2 0.2 0.2
> PhrasePenalty0= 0.2
> LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3 
> LM0= 0.5 
> 
> 
> 
> 
> Could someone help me?
> 
> 
> Thank you in advance 
> Mauro
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support



-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to