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:
hieuhoang1972 2006-07-09 21:37:49 +00:00
parent a17432379b
commit 822963842b

View File

@ -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] << " ";