#include <SearchOptions.h>
Public Member Functions | |
bool | init (Parameter const ¶m) |
SearchOptions (Parameter const ¶m) | |
SearchOptions () | |
bool | UseEarlyDiscarding () const |
bool | update (std::map< std::string, xmlrpc_c::value >const ¶ms) |
Public Attributes | |
SearchAlgorithm | algo |
size_t | stack_size |
size_t | stack_diversity |
bool | disable_discarding |
size_t | max_phrase_length |
size_t | max_trans_opt_per_cov |
size_t | max_partial_trans_opt |
float | beam_width |
int | timeout |
int | segment_timeout |
bool | consensus |
float | early_discarding_threshold |
Use Consensus decoding (DeNero et al 2009). | |
float | trans_opt_threshold |
Definition at line 11 of file SearchOptions.h.
Moses::SearchOptions::SearchOptions | ( | Parameter const & | param | ) |
Definition at line 24 of file SearchOptions.cpp.
References init().
Moses::SearchOptions::SearchOptions | ( | ) |
Definition at line 8 of file SearchOptions.cpp.
bool Moses::SearchOptions::init | ( | Parameter const & | param | ) |
Definition at line 32 of file SearchOptions.cpp.
References algo, beam_width, consensus, Moses::DEFAULT_BEAM_WIDTH, Moses::DEFAULT_EARLY_DISCARDING_THRESHOLD, Moses::DEFAULT_MAX_HYPOSTACK_SIZE, Moses::DEFAULT_MAX_PART_TRANS_OPT_SIZE, Moses::DEFAULT_MAX_PHRASE_LENGTH, Moses::DEFAULT_MAX_TRANS_OPT_SIZE, Moses::DEFAULT_TRANSLATION_OPTION_THRESHOLD, disable_discarding, early_discarding_threshold, max_partial_trans_opt, max_phrase_length, max_trans_opt_per_cov, Moses::Normal, segment_timeout, Moses::Parameter::SetParameter(), stack_diversity, stack_size, timeout, trans_opt_threshold, and Moses::TransformScore().
Referenced by Moses::AllOptions::init(), and SearchOptions().
bool Moses::SearchOptions::update | ( | std::map< std::string, xmlrpc_c::value >const & | params | ) |
Definition at line 108 of file SearchOptions.cpp.
bool Moses::SearchOptions::UseEarlyDiscarding | ( | ) | const [inline] |
Definition at line 44 of file SearchOptions.h.
References early_discarding_threshold.
Referenced by Moses::SearchNormal::ExpandAllHypotheses(), and Moses::SearchNormal::ExpandHypothesis().
Definition at line 14 of file SearchOptions.h.
Referenced by init(), and Moses::ProcessAndStripXMLTags().
Definition at line 25 of file SearchOptions.h.
Referenced by Moses::ChartHypothesisCollection::ChartHypothesisCollection(), init(), Moses::SearchCubePruning::SearchCubePruning(), and Moses::SearchNormal::SearchNormal().
Definition at line 30 of file SearchOptions.h.
Referenced by init(), and Moses::AllOptions::sanity_check().
Use Consensus decoding (DeNero et al 2009).
Definition at line 36 of file SearchOptions.h.
Referenced by Moses::SearchNormal::ExpandHypothesis(), init(), and UseEarlyDiscarding().
Definition at line 21 of file SearchOptions.h.
Referenced by init(), and Moses::SearchNormal::ProcessOneHypothesis().
Definition at line 28 of file SearchOptions.h.
Referenced by init(), and Moses::Search::out_of_time().
Definition at line 18 of file SearchOptions.h.
Referenced by Moses::SearchNormal::ExpandHypothesis(), and init().
Definition at line 17 of file SearchOptions.h.
Referenced by Moses::ChartHypothesisCollection::ChartHypothesisCollection(), Moses::SearchCubePruning::Decode(), init(), Moses::SearchNormal::ProcessOneStack(), Moses::SearchCubePruning::SearchCubePruning(), and Moses::SearchNormal::SearchNormal().
Definition at line 27 of file SearchOptions.h.
Referenced by init(), and Moses::Search::out_of_time().