Moses::ChartTranslationOptionList Class Reference

a vector of translations options for a specific range, in a specific sentence More...

#include <ChartTranslationOptionList.h>

Inheritance diagram for Moses::ChartTranslationOptionList:

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

Collaboration graph
[legend]

List of all members.

Classes

struct  ScoreThresholdPred

Public Member Functions

 ChartTranslationOptionList (size_t ruleLimit, const InputType &input)
 ~ChartTranslationOptionList ()
const ChartTranslationOptionsGet (size_t i) const
size_t GetSize () const
 number of translation options
void Add (const TargetPhraseCollection &, const StackVec &, const Range &)
void AddPhraseOOV (TargetPhrase &phrase, std::list< TargetPhraseCollection::shared_ptr > &waste_memory, const Range &range)
bool Empty () const
float GetBestScore (const ChartCellLabel *chartCell) const
void Clear ()
void ApplyThreshold (float threshold)
void EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath)

Friends

std::ostream & operator<< (std::ostream &, const ChartTranslationOptionList &)


Detailed Description

a vector of translations options for a specific range, in a specific sentence

Definition at line 38 of file ChartTranslationOptionList.h.


Constructor & Destructor Documentation

Moses::ChartTranslationOptionList::ChartTranslationOptionList ( size_t  ruleLimit,
const InputType input 
)

Definition at line 37 of file ChartTranslationOptionList.cpp.

Moses::ChartTranslationOptionList::~ChartTranslationOptionList (  ) 

Definition at line 44 of file ChartTranslationOptionList.cpp.

References Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

void Moses::ChartTranslationOptionList::Add ( const TargetPhraseCollection tpc,
const StackVec stackVec,
const Range range 
) [virtual]

Implements Moses::ChartParserCallback.

Definition at line 63 of file ChartTranslationOptionList.cpp.

References Moses::TargetPhraseCollection::begin(), Moses::TargetPhrase::GetFutureScore(), Moses::ChartCellLabel::GetStack(), Moses::TargetPhraseCollection::IsEmpty(), and NTH_ELEMENT4.

Referenced by AddPhraseOOV().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::ChartTranslationOptionList::AddPhraseOOV ( TargetPhrase phrase,
std::list< TargetPhraseCollection::shared_ptr > &  waste_memory,
const Range range 
) [virtual]

Implements Moses::ChartParserCallback.

Definition at line 121 of file ChartTranslationOptionList.cpp.

References Add().

Here is the call graph for this function:

void Moses::ChartTranslationOptionList::ApplyThreshold ( float  threshold  ) 

Definition at line 132 of file ChartTranslationOptionList.cpp.

References Moses::ChartTranslationOptions::GetEstimateOfBestScore(), NTH_ELEMENT4, and partition().

Referenced by Moses::ChartManager::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::ChartTranslationOptionList::Clear (  ) 

Definition at line 49 of file ChartTranslationOptionList.cpp.

Referenced by Moses::ChartManager::Decode().

Here is the caller graph for this function:

bool Moses::ChartTranslationOptionList::Empty (  )  const [inline, virtual]

Implements Moses::ChartParserCallback.

Definition at line 60 of file ChartTranslationOptionList.h.

void Moses::ChartTranslationOptionList::EvaluateWithSourceContext ( const InputType input,
const InputPath inputPath 
) [virtual]

Implements Moses::ChartParserCallback.

Definition at line 176 of file ChartTranslationOptionList.cpp.

References Moses::ChartTranslationOptions::EvaluateWithSourceContext(), and Moses::ChartTranslationOptions::GetSize().

Referenced by Moses::ChartManager::Decode().

Here is the call graph for this function:

Here is the caller graph for this function:

const ChartTranslationOptions& Moses::ChartTranslationOptionList::Get ( size_t  i  )  const [inline]

Definition at line 46 of file ChartTranslationOptionList.h.

Referenced by Moses::ChartCell::Decode().

Here is the caller graph for this function:

float Moses::ChartTranslationOptionList::GetBestScore ( const ChartCellLabel chartCell  )  const [virtual]

Implements Moses::ChartParserCallback.

Definition at line 167 of file ChartTranslationOptionList.cpp.

References Moses::ChartCellLabel::GetStack().

Here is the call graph for this function:

size_t Moses::ChartTranslationOptionList::GetSize (  )  const [inline]

number of translation options

Definition at line 51 of file ChartTranslationOptionList.h.

Referenced by Moses::ChartCell::Decode().

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const ChartTranslationOptionList obj 
) [friend]

Definition at line 210 of file ChartTranslationOptionList.cpp.


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

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