Moses::TranslationOptionCollectionConfusionNet Class Reference

#include <TranslationOptionCollectionConfusionNet.h>

Inheritance diagram for Moses::TranslationOptionCollectionConfusionNet:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< std::vector< InputPathList > > 
InputPathMatrix

Public Member Functions

 TranslationOptionCollectionConfusionNet (ttasksptr const &ttask, const ConfusionNet &source)
void ProcessUnknownWord (size_t sourcePos)
 implemented by inherited class, called by this class
void CreateTranslationOptions ()
 Create all possible translations from the phrase tables.
bool CreateTranslationOptionsForRange (const DecodeGraph &decodeStepList, size_t spos, size_t epos, bool adhereTableLimit, size_t graphInd)

Protected Member Functions

InputPathListGetInputPathList (size_t startPos, size_t endPos)
bool CreateTranslationOptionsForRangeNew (const DecodeGraph &decodeStepList, size_t startPosition, size_t endPosition, bool adhereTableLimit, size_t graphInd)
bool CreateTranslationOptionsForRangeLEGACY (const DecodeGraph &decodeStepList, size_t startPosition, size_t endPosition, bool adhereTableLimit, size_t graphInd)

Protected Attributes

InputPathMatrix m_inputPathMatrix


Detailed Description

Holds all translation options, for all spans, of a particular confusion network input Inherited from TranslationOptionCollection.

Definition at line 16 of file TranslationOptionCollectionConfusionNet.h.


Member Typedef Documentation

Definition at line 19 of file TranslationOptionCollectionConfusionNet.h.


Constructor & Destructor Documentation

Moses::TranslationOptionCollectionConfusionNet::TranslationOptionCollectionConfusionNet ( ttasksptr const &  ttask,
const ConfusionNet input 
)


Member Function Documentation

void Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptions (  )  [virtual]

Create all possible translations from the phrase tables.

Create all possible translations from the phrase tables for a particular input sentence. This implies applying all translation and generation steps. Also computes future cost matrix.

Reimplemented from Moses::TranslationOptionCollection.

Definition at line 170 of file TranslationOptionCollectionConfusionNet.cpp.

References Moses::TranslationOptionCollection::CreateTranslationOptions(), and Moses::StaticData::Instance().

Here is the call graph for this function:

bool Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRange ( const DecodeGraph decodeGraph,
size_t  startPos,
size_t  endPos,
bool  adhereTableLimit,
size_t  graphInd 
) [virtual]

create translation options that exactly cover a specific input span. Called by CreateTranslationOptions() and ProcessUnknownWord()

Parameters:
decodeGraph list of decoding steps
factorCollection input sentence with all factors
startPos first position in input sentence
lastPos last position in input sentence
adhereTableLimit whether phrase & generation table limits are adhered to
Returns:
true if there is at least one path for the range has matches in the source side of the parallel data, i.e., the phrase prefix exists (abortion condition for trie-based lookup if false)

Implements Moses::TranslationOptionCollection.

Definition at line 192 of file TranslationOptionCollectionConfusionNet.cpp.

References CreateTranslationOptionsForRangeLEGACY(), CreateTranslationOptionsForRangeNew(), and Moses::StaticData::Instance().

Here is the call graph for this function:

bool Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLEGACY ( const DecodeGraph decodeStepList,
size_t  startPosition,
size_t  endPosition,
bool  adhereTableLimit,
size_t  graphInd 
) [protected]

bool Moses::TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeNew ( const DecodeGraph decodeStepList,
size_t  startPosition,
size_t  endPosition,
bool  adhereTableLimit,
size_t  graphInd 
) [protected]

Definition at line 208 of file TranslationOptionCollectionConfusionNet.cpp.

References Moses::TranslationOptionCollection::CreateTranslationOptionsForRange().

Referenced by CreateTranslationOptionsForRange().

Here is the call graph for this function:

Here is the caller graph for this function:

InputPathList & Moses::TranslationOptionCollectionConfusionNet::GetInputPathList ( size_t  startPos,
size_t  endPos 
) [protected]

void Moses::TranslationOptionCollectionConfusionNet::ProcessUnknownWord ( size_t  sourcePos  )  [virtual]


Member Data Documentation


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

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