mosesdecoder/moses/parameters/BookkeepingOptions.cpp
2015-06-04 13:41:46 +01:00

19 lines
395 B
C++

#include "BookkeepingOptions.h"
namespace Moses
{
bool
BookkeepingOptions::
init(Parameter const& P)
{
bool& x = need_alignment_info;
P.SetParameter(x, "print-alignment-info", false);
if (!x) P.SetParameter(x, "print-alignment-info-in-n-best", false);
if (!x) {
PARAM_VEC const* params = P.GetParam("alignment-output-file");
x = params && params->size();
}
return true;
}
}