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

AllOptions.h « parameters « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 05acb3ffbab89bbbc1042bc65999a86ee24dc930 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once
#include <string>
#include "moses/Parameter.h"
#include "OptionsBaseClass.h"
#include "SearchOptions.h"
#include "CubePruningOptions.h"
#include "NBestOptions.h"
#include "ReorderingOptions.h"
#include "ContextParameters.h"
#include "InputOptions.h"
#include "MBR_Options.h"
#include "LMBR_Options.h"
#include "ReportingOptions.h"
#include "OOVHandlingOptions.h"
#include "SyntaxOptions.h"

namespace Moses
{
  struct 
  AllOptions : public OptionsBaseClass
  {
    SearchOptions         search;
    CubePruningOptions      cube;
    NBestOptions           nbest;
    ReorderingOptions reordering;
    ContextParameters    context;
    InputOptions           input;
    MBR_Options              mbr;
    LMBR_Options            lmbr;
    ReportingOptions      output; 
    OOVHandlingOptions       unk;
    SyntaxOptions         syntax;
    bool mira;

    // StackOptions      stack;
    // BeamSearchOptions  beam;
    bool init(Parameter const& param);
    bool sanity_check();
    AllOptions() {}
    AllOptions(Parameter const& param);

    bool update(std::map<std::string,xmlrpc_c::value>const& param);
    bool NBestDistinct() const;
    
  };

}