#include <ChartTranslationOptionList.h>
Classes | |
struct | ScoreThresholdPred |
Public Member Functions | |
ChartTranslationOptionList (size_t ruleLimit, const InputType &input) | |
~ChartTranslationOptionList () | |
const ChartTranslationOptions & | Get (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 &) |
Definition at line 38 of file ChartTranslationOptionList.h.
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().
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().
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().
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().
void Moses::ChartTranslationOptionList::Clear | ( | ) |
Definition at line 49 of file ChartTranslationOptionList.cpp.
Referenced by Moses::ChartManager::Decode().
bool Moses::ChartTranslationOptionList::Empty | ( | ) | const [inline, virtual] |
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().
const ChartTranslationOptions& Moses::ChartTranslationOptionList::Get | ( | size_t | i | ) | const [inline] |
Definition at line 46 of file ChartTranslationOptionList.h.
Referenced by Moses::ChartCell::Decode().
float Moses::ChartTranslationOptionList::GetBestScore | ( | const ChartCellLabel * | chartCell | ) | const [virtual] |
Implements Moses::ChartParserCallback.
Definition at line 167 of file ChartTranslationOptionList.cpp.
References Moses::ChartCellLabel::GetStack().
size_t Moses::ChartTranslationOptionList::GetSize | ( | ) | const [inline] |
number of translation options
Definition at line 51 of file ChartTranslationOptionList.h.
Referenced by Moses::ChartCell::Decode().
std::ostream& operator<< | ( | std::ostream & | out, | |
const ChartTranslationOptionList & | obj | |||
) | [friend] |
Definition at line 210 of file ChartTranslationOptionList.cpp.