Moses::Search Class Reference

#include <Search.h>

Inheritance diagram for Moses::Search:

Inheritance graph
[legend]
Collaboration diagram for Moses::Search:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const std::vector
< HypothesisStack * > & 
GetHypothesisStacks () const =0
virtual const HypothesisGetBestHypothesis () const =0
virtual void Decode ()=0
 Decode the sentence according to the specified search algorithm.
 Search (Manager &manager)
virtual ~Search ()

Protected Member Functions

bool out_of_time ()

Protected Attributes

Managerm_manager
const InputTypem_source
AllOptions const & m_options
InputPath m_inputPath
TranslationOption m_initialTransOpt
Bitmaps m_bitmaps
size_t interrupted_flag
Timer m_timer


Detailed Description

Base search class used in the phrase-based decoder.

Actual search class that implement the cube pruning algorithm (SearchCubePruning) or standard beam search (SearchNormal) should inherits from this class, and override pure virtual functions.

Definition at line 28 of file Search.h.


Constructor & Destructor Documentation

Moses::Search::Search ( Manager manager  )  [explicit]

Definition at line 10 of file Search.cpp.

References m_initialTransOpt, m_inputPath, m_timer, Moses::TranslationOption::SetInputPath(), and Moses::Timer::start().

Here is the call graph for this function:

virtual Moses::Search::~Search (  )  [inline, virtual]

Definition at line 38 of file Search.h.


Member Function Documentation

virtual void Moses::Search::Decode (  )  [pure virtual]

Decode the sentence according to the specified search algorithm.

Implemented in Moses::SearchCubePruning, and Moses::SearchNormal.

Referenced by Moses::Manager::Decode().

Here is the caller graph for this function:

virtual const Hypothesis* Moses::Search::GetBestHypothesis (  )  const [pure virtual]

Implemented in Moses::SearchCubePruning, and Moses::SearchNormal.

Referenced by Moses::Manager::GetBestHypothesis().

Here is the caller graph for this function:

virtual const std::vector<HypothesisStack*>& Moses::Search::GetHypothesisStacks (  )  const [pure virtual]

bool Moses::Search::out_of_time (  )  [protected]


Member Data Documentation

size_t Moses::Search::interrupted_flag [protected]

flag indicating that decoder ran out of time (see switch -time-out)

Definition at line 50 of file Search.h.

Referenced by Moses::SearchNormal::GetBestHypothesis(), and out_of_time().

used to seed 1st hypo

Definition at line 46 of file Search.h.

Referenced by Moses::SearchNormal::Decode(), Moses::SearchCubePruning::Decode(), and Search().

Definition at line 45 of file Search.h.

Referenced by Search().

const InputType& Moses::Search::m_source [protected]

Definition at line 52 of file Search.h.

Referenced by out_of_time(), and Search().


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:33:32 2017 for Moses by  doxygen 1.5.9