mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-24 20:32:59 +03:00
Allow 'ranked' as alias for sampling method 'rank'.
This commit is contained in:
parent
37342f6231
commit
cc5f128944
@ -227,7 +227,7 @@ namespace Moses
|
||||
|
||||
if ((m = param.find("method")) != param.end())
|
||||
{
|
||||
if (m->second == "rank")
|
||||
if (m->second == "rank" || m->second == "ranked")
|
||||
m_sampling_method = ranked_sampling;
|
||||
else if (m->second == "random")
|
||||
m_sampling_method = random_sampling;
|
||||
|
Loading…
Reference in New Issue
Block a user