mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 15:00:33 +03:00
23 lines
535 B
C++
23 lines
535 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();
|
|
};
|
|
|
|
}
|
|
|