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

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

  // 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();
  };

}