mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
23 lines
522 B
C++
23 lines
522 B
C++
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
|
|
#pragma once
|
|
#include <string>
|
|
#include "moses/Parameter.h"
|
|
#include "OptionsBaseClass.h"
|
|
namespace Moses
|
|
{
|
|
|
|
// Options for mimum bayes risk decoding
|
|
struct
|
|
MBR_Options : public OptionsBaseClass
|
|
{
|
|
bool enabled;
|
|
size_t size; //! number of translation candidates considered
|
|
float scale; /*! scaling factor for computing marginal probability
|
|
* of candidate translation */
|
|
bool init(Parameter const& param);
|
|
MBR_Options() {}
|
|
};
|
|
|
|
}
|
|
|