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 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 Bitmap &bitmap, const Range &range, BitmapContainer &bitmapContainer)
 create a back pointer to this bitmap, with edge that has this words range translation
bool CheckDistortion (const Bitmap &bitmap, const Range &range) const
void PrintBitmapContainerGraph ()

Protected Attributes

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 TranslationOptionCollection transOptColl 
)

Moses::SearchCubePruning::~SearchCubePruning (  ) 

Definition at line 68 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 Bitmap bitmap,
const Range range 
) const [protected]

void Moses::SearchCubePruning::CreateForwardTodos ( const Bitmap bitmap,
const Range 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 305 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 359 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 344 of file SearchCubePruning.cpp.

References m_hypoStackColl, and TRACE_ERR.

void Moses::SearchCubePruning::OutputHypoStackSize (  ) 

Logging of hypothesis stack sizes

Definition at line 317 of file SearchCubePruning.cpp.

References m_hypoStackColl, and TRACE_ERR.

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

Definition at line 327 of file SearchCubePruning.cpp.

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

Here is the call graph for this function:


Member Data Documentation

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

Definition at line 23 of file SearchCubePruning.h.

Referenced by CreateForwardTodos().


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

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