mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 15:00:33 +03:00
25 lines
447 B
C++
25 lines
447 B
C++
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
|
|
#include "MBR_Options.h"
|
|
|
|
namespace Moses {
|
|
|
|
MBR_Options::
|
|
MBR_Options()
|
|
: enabled(false)
|
|
, size(200)
|
|
, scale(1.0f)
|
|
{}
|
|
|
|
|
|
bool
|
|
MBR_Options::
|
|
init(Parameter const& param)
|
|
{
|
|
param.SetParameter(enabled, "minimum-bayes-risk", false);
|
|
param.SetParameter<size_t>(size, "mbr-size", 200);
|
|
param.SetParameter(scale, "mbr-scale", 1.0f);
|
|
return true;
|
|
}
|
|
|
|
}
|