mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
rename multimodel weights in moses server (harmonization with the new config format)
This commit is contained in:
parent
29cde2a204
commit
a15bc05a33
@ -22,7 +22,7 @@ def translate(input_object, server, weights=None):
|
||||
params = {}
|
||||
params['text'] = line
|
||||
if weights:
|
||||
params['weight-t-multimodel'] = weights
|
||||
params['lambda'] = weights
|
||||
|
||||
print server.translate(params)
|
||||
|
||||
@ -65,7 +65,7 @@ def translate_single_line(args):
|
||||
params = {}
|
||||
params['text'] = line
|
||||
if weights:
|
||||
params['weight-t-multimodel'] = weights
|
||||
params['lambda'] = weights
|
||||
|
||||
return server.translate(params)['text']
|
||||
|
||||
|
@ -228,7 +228,7 @@ public:
|
||||
bool nbest_distinct = (si != params.end());
|
||||
|
||||
vector<float> multiModelWeights;
|
||||
si = params.find("weight-t-multimodel");
|
||||
si = params.find("lambda");
|
||||
if (si != params.end()) {
|
||||
xmlrpc_c::value_array multiModelArray = xmlrpc_c::value_array(si->second);
|
||||
vector<xmlrpc_c::value> multiModelValueVector(multiModelArray.vectorValueValue());
|
||||
|
Loading…
Reference in New Issue
Block a user