Moses::SearchCubePruning Class Reference

#include <SearchCubePruning.h>

Inheritance diagram for Moses::SearchCubePruning:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SearchCubePruning (Manager &manager, const InputType &source, const TranslationOptionCollection &transOptColl)
 ~SearchCubePruning ()
void Decode ()
void OutputHypoStackSize ()
void OutputHypoStack (int stack)
virtual const std::vector
< HypothesisStack * > & 
GetHypothesisStacks () const
virtual const HypothesisGetBestHypothesis () const

Protected Member Functions

void CreateForwardTodos (HypothesisStackCubePruning &stack)
 go thru all bitmaps in 1 stack & create backpointers to bitmaps in the stack
void CreateForwardTodos (const WordsBitmap &bitmap, const WordsRange &range, BitmapContainer &bitmapContainer)
 create a back pointer to this bitmap, with edge that has this words range translation
bool CheckDistortion (const WordsBitmap &bitmap, const WordsRange &range) const
void PrintBitmapContainerGraph ()

Protected Attributes

const InputTypem_source
std::vector< HypothesisStack * > m_hypoStackColl
const TranslationOptionCollectionm_transOptColl


Detailed Description

Functions and variables you need to decoder an input using the phrase-based decoder with cube-pruning Instantiated by the Manager class

Definition at line 18 of file SearchCubePruning.h.


Constructor & Destructor Documentation

Moses::SearchCubePruning::SearchCubePruning ( Manager manager,
const InputType source,
const TranslationOptionCollection transOptColl 
)

Moses::SearchCubePruning::~SearchCubePruning (  ) 

Definition at line 58 of file SearchCubePruning.cpp.

References m_hypoStackColl, and Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

bool Moses::SearchCubePruning::CheckDistortion ( const WordsBitmap bitmap,
const WordsRange range 
) const [protected]

void Moses::SearchCubePruning::CreateForwardTodos ( const WordsBitmap bitmap,
const WordsRange range,
BitmapContainer bitmapContainer 
) [protected]

void Moses::SearchCubePruning::CreateForwardTodos ( HypothesisStackCubePruning stack  )  [protected]

void Moses::SearchCubePruning::Decode (  )  [virtual]

Hypothesis const * Moses::SearchCubePruning::GetBestHypothesis (  )  const [virtual]

Find best hypothesis on the last stack. This is the end point of the best translation, which can be traced back from here

Implements Moses::Search.

Definition at line 279 of file SearchCubePruning.cpp.

References Moses::HypothesisStack::GetBestHypothesis(), and m_hypoStackColl.

Here is the call graph for this function:

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

Implements Moses::Search.

Definition at line 333 of file SearchCubePruning.cpp.

References m_hypoStackColl.

void Moses::SearchCubePruning::OutputHypoStack ( int  stack  ) 

Logging of hypothesis stack contents

Parameters:
stack number of stack to be reported, report all stacks if 0

Definition at line 318 of file SearchCubePruning.cpp.

References m_hypoStackColl, and TRACE_ERR.

void Moses::SearchCubePruning::OutputHypoStackSize (  ) 

Logging of hypothesis stack sizes

Definition at line 291 of file SearchCubePruning.cpp.

References m_hypoStackColl, and TRACE_ERR.

void Moses::SearchCubePruning::PrintBitmapContainerGraph (  )  [protected]

Definition at line 301 of file SearchCubePruning.cpp.

References Moses::HypothesisStackCubePruning::GetBitmapAccessor(), and m_hypoStackColl.

Here is the call graph for this function:


Member Data Documentation

Definition at line 21 of file SearchCubePruning.h.

Referenced by CheckDistortion(), CreateForwardTodos(), and Decode().

pre-computed list of translation options for the phrases in this sentence

Definition at line 24 of file SearchCubePruning.h.

Referenced by CreateForwardTodos().


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

Generated on Mon Jul 6 00:33:42 2015 for Moses by  doxygen 1.5.9