Moses::SearchNormalBatch Class Reference

#include <SearchNormalBatch.h>

Inheritance diagram for Moses::SearchNormalBatch:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SearchNormalBatch (Manager &manager, const InputType &source, const TranslationOptionCollection &transOptColl)
 ~SearchNormalBatch ()
void Decode ()

Protected Member Functions

void ExpandHypothesis (const Hypothesis &hypothesis, const TranslationOption &transOpt, float expectedScore)
void EvalAndMergePartialHypos ()

Protected Attributes

std::vector< const
StatelessFeatureFunction * > 
m_stateless_ffs
std::map< int, LanguageModel * > m_dlm_ffs
std::map< int,
StatefulFeatureFunction * > 
m_stateful_ffs
std::vector< Hypothesis * > m_partial_hypos
uint32_t m_batch_size
int m_max_stack_size


Detailed Description

Implements the phrase-based stack decoding algorithm (no cube pruning) with a twist... Language model requests are batched together, duplicate requests are removed, and requests are sent together. Useful for distributed LM where network latency is an issue.

Definition at line 18 of file SearchNormalBatch.h.


Constructor & Destructor Documentation

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

Moses::SearchNormalBatch::~SearchNormalBatch (  ) 

Definition at line 35 of file SearchNormalBatch.cpp.


Member Function Documentation

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

void Moses::SearchNormalBatch::EvalAndMergePartialHypos (  )  [protected]

void Moses::SearchNormalBatch::ExpandHypothesis ( const Hypothesis hypothesis,
const TranslationOption transOpt,
float  expectedScore 
) [protected, virtual]

Expand one hypothesis with a translation option. this involves initial creation, scoring and adding it to the proper stack

Parameters:
hypothesis hypothesis to be expanded upon
transOpt translation option (phrase translation) that is applied to create the new hypothesis
expectedScore base score for early discarding (base hypothesis score plus future score estimation)

Reimplemented from Moses::SearchNormal.

Definition at line 108 of file SearchNormalBatch.cpp.

References Moses::Hypothesis::CreateNext(), EvalAndMergePartialHypos(), Moses::Hypothesis::GetFFState(), Moses::Hypothesis::GetPrevHypo(), Moses::Manager::GetSentenceStats(), IFVERBOSE, Moses::StaticData::Instance(), m_batch_size, m_dlm_ffs, Moses::Search::m_manager, m_partial_hypos, NULL, Moses::SentenceStats::StartTimeBuildHyp(), Moses::stats, Moses::SentenceStats::StopTimeBuildHyp(), Moses::StaticData::UseEarlyDiscarding(), and UTIL_THROW2.

Here is the call graph for this function:


Member Data Documentation

Definition at line 27 of file SearchNormalBatch.h.

Referenced by ExpandHypothesis().

Definition at line 28 of file SearchNormalBatch.h.

Referenced by EvalAndMergePartialHypos(), and SearchNormalBatch().

Definition at line 26 of file SearchNormalBatch.h.

Referenced by EvalAndMergePartialHypos(), and ExpandHypothesis().

Definition at line 25 of file SearchNormalBatch.h.

Referenced by EvalAndMergePartialHypos(), and SearchNormalBatch().

Definition at line 23 of file SearchNormalBatch.h.

Referenced by EvalAndMergePartialHypos(), and SearchNormalBatch().


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

Generated on Thu Aug 6 00:33:57 2015 for Moses by  doxygen 1.5.9