mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
variable number of translation component scores
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@24 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
a17432379b
commit
822963842b
@ -136,13 +136,13 @@ void IOCommandLine::SetNBest(const LatticePathList &nBestList, long translationI
|
||||
}
|
||||
|
||||
// trans components
|
||||
const TransScoreComponentCollection
|
||||
&transScoreComponent = path.GetTransScoreComponent();
|
||||
const ScoreComponentCollection
|
||||
&transScoreComponent = path.GetScoreComponent();
|
||||
|
||||
TransScoreComponentCollection::const_iterator iterTrans;
|
||||
ScoreComponentCollection::const_iterator iterTrans;
|
||||
for (iterTrans = transScoreComponent.begin() ; iterTrans != transScoreComponent.end() ; ++iterTrans)
|
||||
{
|
||||
const TransScoreComponent &transScore = *iterTrans->second;
|
||||
const ScoreComponent &transScore = *iterTrans->second;
|
||||
for (size_t i = 0 ; i < transScore.GetNoScoreComponent() ; i++)
|
||||
{
|
||||
m_nBestFile << transScore[i] << " ";
|
||||
|
Loading…
Reference in New Issue
Block a user