Allow 'ranked' as alias for sampling method 'rank'.

This commit is contained in:
Ulrich Germann 2015-07-11 00:24:20 +01:00
parent 37342f6231
commit cc5f128944

View File

@ -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;