00001 // -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*- 00002 #include "ReorderingOptions.h" 00003 00004 namespace Moses { 00005 00006 ReorderingOptions:: 00007 ReorderingOptions() 00008 : max_distortion(-1) 00009 , monotone_at_punct(false) 00010 , use_early_distortion_cost(false) 00011 {} 00012 00013 00014 ReorderingOptions:: 00015 ReorderingOptions(Parameter const& param) 00016 { 00017 init(param); 00018 } 00019 00020 bool 00021 ReorderingOptions:: 00022 init(Parameter const& param) 00023 { 00024 param.SetParameter(max_distortion, "distortion-limit", -1); 00025 param.SetParameter(monotone_at_punct, "monotone-at-punctuation", false); 00026 param.SetParameter(use_early_distortion_cost, "early-distortion-cost", false); 00027 return true; 00028 } 00029 }