Hi, everyone!

I have a problem with weighting two translation models using 
client_multimodel.py. When I function like that (with no weights):

translate(['i have a dream'],server)

it's ok - Moses responses me with translation via xmlrpc.

But when I try to add weigts like that 

translate(['i have a dream'],server, '0.1,0.1')

it returns nothing, neither translation nor error report.

Can you please advice upon, what the problem can be and what is the syntax of 
setting weights?

My moses.inin file is the following:

[input-factors]
0

# mapping steps
[mapping]
0 T 2

[distortion-limit]
6

# feature functions
[feature]
UnknownWordPenalty
WordPenalty
PhrasePenalty
PhraseDictionaryMemory table-limit=20 tuneable=false  num-features=4 
path=/home/user/corpora/mem/train/model/phrase-table.gz input-factor=0 
output-factor=0
PhraseDictionaryMemory table-limit=20 tuneable=false  num-features=4 
path=/home/user/corpora/pm/train/model/phrase-table.gz   input-factor=0 
output-factor=0
PhraseDictionaryMultiModel num-features=4 input-factor=0 output-factor=0 
table-limit=20 mode=interpolate lambda=0.2,0.8 
components=PhraseDictionaryMemory0,PhraseDictionaryMemory1
LexicalReordering name=LexicalReordering0 num-features=6 
type=wbe-msd-bidirectional-fe-allff input-factor=0 output-factor=0 
path=/home/user/corpora/mem/train/model/reordering-table.wbe-msd-bidirectional-fe.gz
Distortion
KENLM lazyken=0 name=LM0 factor=0 path=/home/user/corpora/mem/blm.ru order=5

# dense weights for feature functions
[weight]
UnknownWordPenalty0= 1
WordPenalty0= -1
PhrasePenalty0= 0.2
PhraseDictionaryMemory0= 0 0 1 0 
PhraseDictionaryMemory1= 0 0 1 0
PhraseDictionaryMultiModel0= 0.2 0.2 0.2 0.2
LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3
Distortion0= 0.3
LM0= 0.5

Many thanx! Kind regards!

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

Reply via email to