Калинин Александр <verbalab@...> writes:

> 
> 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.

Hi Alexander,

'0.1,0.1' is a string, but the function translate expects a list of floats.
Try this:

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

Tell me if this works; I'll try to better document the arguments early next
year.

-
Rico

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

Reply via email to