blob: 694a8a3475cc318394c58e3a9542763da9bb079a (
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
49
50
51
|
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once
#include <string>
#include <boost/shared_ptr.hpp>
#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 "ServerOptions.h"
#include "SyntaxOptions.h"
namespace Moses2
{
struct
AllOptions : public OptionsBaseClass
{
typedef boost::shared_ptr<AllOptions const> ptr;
SearchOptions search;
CubePruningOptions cube;
NBestOptions nbest;
ReorderingOptions reordering;
ContextParameters context;
InputOptions input;
MBR_Options mbr;
LMBR_Options lmbr;
ReportingOptions output;
OOVHandlingOptions unk;
ServerOptions server;
SyntaxOptions syntax;
bool mira;
bool use_legacy_pt;
// 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;
};
}
|