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 ProcessSentence ()
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
TargetPhrase m_initialTargetPhrase
clock_t m_start
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 17 of file SearchCubePruning.h.


Constructor & Destructor Documentation

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

Moses::SearchCubePruning::~SearchCubePruning (  ) 

Definition at line 65 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]

const Hypothesis * 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 271 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 323 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 308 of file SearchCubePruning.cpp.

References m_hypoStackColl, and TRACE_ERR.

void Moses::SearchCubePruning::OutputHypoStackSize (  ) 

Logging of hypothesis stack sizes

Definition at line 281 of file SearchCubePruning.cpp.

References m_hypoStackColl, and TRACE_ERR.

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

Definition at line 291 of file SearchCubePruning.cpp.

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

Here is the call graph for this function:

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


Member Data Documentation

used to seed 1st hypo

Definition at line 23 of file SearchCubePruning.h.

Referenced by ProcessSentence().

Definition at line 20 of file SearchCubePruning.h.

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

clock_t Moses::SearchCubePruning::m_start [protected]

used to track time spend on translation

Definition at line 24 of file SearchCubePruning.h.

Referenced by ProcessSentence().

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

Definition at line 25 of file SearchCubePruning.h.

Referenced by CreateForwardTodos().


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

Generated on Wed Oct 1 00:32:03 2014 for Moses by  doxygen 1.5.9