mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 15:00:33 +03:00
strong them locally where appropriate, so that compontents can become independent of StaticData once instantiated.
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
// -*- 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"
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
namespace Moses
|
|
{
|
|
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;
|
|
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;
|
|
|
|
};
|
|
|
|
}
|