mosesdecoder/moses/parameters/ReorderingOptions.cpp
Ulrich Germann 524109e2ca Reorganisation of options.
The purpose of this effort is to have options local to the individual translation task,
so that they can be changed in the running system in a multi-threaded system.
2015-08-06 21:11:43 +01:00

22 lines
512 B
C++

// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#include "ReorderingOptions.h"
namespace Moses {
ReorderingOptions::
ReorderingOptions(Parameter const& param)
{
init(param);
}
bool
ReorderingOptions::
init(Parameter const& param)
{
param.SetParameter(max_distortion, "distortion-limit", -1);
param.SetParameter(monotone_at_punct, "monotone-at-punctuation", false);
param.SetParameter(use_early_distortion_cost, "early-distortion-cost", false);
return true;
}
}