add InputPath objects of chart decoding. Start on lattice input for chart decoding

This commit is contained in:
Hieu Hoang 2013-08-09 10:27:46 +01:00
parent 59e7a179ca
commit f4d534ffd7
2 changed files with 19 additions and 8 deletions

View File

@ -26,6 +26,23 @@
namespace Moses
{
ChartTranslationOptions::ChartTranslationOptions(const TargetPhraseCollection &targetPhraseColl,
const StackVec &stackVec,
const WordsRange &wordsRange,
float score)
: m_stackVec(stackVec)
, m_targetPhraseCollection(&targetPhraseColl)
, m_wordsRange(&wordsRange)
, m_estimateOfBestScore(score)
{
}
ChartTranslationOptions::~ChartTranslationOptions()
{
}
float ChartTranslationOptions::CalcEstimateOfBestScore(
const TargetPhraseCollection &tpc,
const StackVec &stackVec)

View File

@ -45,14 +45,8 @@ public:
ChartTranslationOptions(const TargetPhraseCollection &targetPhraseColl,
const StackVec &stackVec,
const WordsRange &wordsRange,
float score)
: m_stackVec(stackVec)
, m_targetPhraseCollection(&targetPhraseColl)
, m_wordsRange(&wordsRange)
, m_estimateOfBestScore(score) {
}
~ChartTranslationOptions() {}
float score);
~ChartTranslationOptions();
static float CalcEstimateOfBestScore(const TargetPhraseCollection &,
const StackVec &);