mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 15:04:05 +03:00
derivation of n-best list output
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3939 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
adc2ac2c6a
commit
6acbdcdd28
@ -22,6 +22,7 @@
|
||||
#include "ChartTrellisNode.h"
|
||||
#include "ChartHypothesis.h"
|
||||
#include "ScoreComponentCollection.h"
|
||||
#include "StaticData.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -100,6 +101,10 @@ Phrase ChartTrellisNode::GetOutputPhrase() const
|
||||
// exactly like same fn in hypothesis, but use trellis nodes instead of prevHypos pointer
|
||||
Phrase ret(Output, ARRAY_SIZE_INCR);
|
||||
|
||||
const ChartTranslationOption &transOpt = m_hypo->GetTranslationOption();
|
||||
|
||||
VERBOSE(3, "Trans Opt:" << transOpt << std::endl);
|
||||
|
||||
const Phrase &currTargetPhrase = m_hypo->GetCurrTargetPhrase();
|
||||
for (size_t pos = 0; pos < currTargetPhrase.GetSize(); ++pos) {
|
||||
const Word &word = currTargetPhrase.GetWord(pos);
|
||||
|
Loading…
Reference in New Issue
Block a user