00001 #include "BookkeepingOptions.h" 00002 00003 namespace Moses 00004 { 00005 00006 bool 00007 BookkeepingOptions:: 00008 init(Parameter const& P) 00009 { 00010 bool& x = need_alignment_info; 00011 P.SetParameter(x, "print-alignment-info", false); 00012 if (!x) P.SetParameter(x, "print-alignment-info-in-n-best", false); 00013 if (!x) { 00014 PARAM_VEC const* params = P.GetParam("alignment-output-file"); 00015 x = params && params->size(); 00016 } 00017 return true; 00018 } 00019 00020 BookkeepingOptions:: 00021 BookkeepingOptions() 00022 : need_alignment_info(false) 00023 { } 00024 00025 }