mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
add InputPath objects of chart decoding. Start on lattice input for chart decoding
This commit is contained in:
parent
59e7a179ca
commit
f4d534ffd7
@ -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)
|
||||
|
@ -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 &);
|
||||
|
Loading…
Reference in New Issue
Block a user