vllm_fairseq / mosesdecoder /moses2 /parameters /BookkeepingOptions.cpp
sleepyhead111's picture
Add files using upload-large-folder tool
9b97a92 verified
#include "BookkeepingOptions.h"
#include "../legacy/Parameter.h"
namespace Moses2
{
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;
}
BookkeepingOptions::
BookkeepingOptions()
: need_alignment_info(false)
{ }
}