Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LMBR_Options.h « parameters « moses2 « contrib - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c084f04b9b8c57a59b5f58c9795cdb36b612eb22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once
#include <string>
#include <vector>
#include "OptionsBaseClass.h"

namespace Moses2
{

  // Options for mimum bayes risk decoding
  struct 
  LMBR_Options : public OptionsBaseClass
  {
    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);
    LMBR_Options();
  };

}