2015-08-07 00:52:34 +03:00
|
|
|
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "moses/Parameter.h"
|
2015-08-07 21:17:37 +03:00
|
|
|
#include "OptionsBaseClass.h"
|
2015-08-07 00:52:34 +03:00
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
|
|
|
|
// Options for mimum bayes risk decoding
|
|
|
|
struct
|
2015-08-07 21:17:37 +03:00
|
|
|
LMBR_Options : public OptionsBaseClass
|
2015-08-07 00:52:34 +03:00
|
|
|
{
|
|
|
|
bool enabled;
|
|
|
|
bool use_lattice_hyp_set; //! to use nbest as hypothesis set during lattice MBR
|
|
|
|
float precision; //! unigram precision theta - see Tromble et al 08 for more details
|
|
|
|
float ratio; //! decaying factor for ngram thetas - see Tromble et al 08
|
|
|
|
float map_weight; //! Weight given to the map solution. See Kumar et al 09
|
|
|
|
size_t pruning_factor; //! average number of nodes per word wanted in pruned lattice
|
|
|
|
std::vector<float> theta; //! theta(s) for lattice mbr calculation
|
|
|
|
bool init(Parameter const& param);
|
2015-12-08 15:28:35 +03:00
|
|
|
LMBR_Options();
|
2015-08-07 00:52:34 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|