fix bug in OutputNBestList

This commit is contained in:
Eva Hasler 2012-04-11 13:02:23 +01:00
parent ed14ee12c0
commit 74c2cf3417

View File

@ -418,9 +418,11 @@ void IOWrapper::OutputNBestList(const ChartTrellisPathList &nBestList, const Cha
lastName = "";
const vector<const StatelessFeatureFunction*>& slf = system->GetStatelessFeatureFunctions();
for( size_t i=0; i<slf.size(); i++ )
if (sff[i]->GetNumScoreComponents() == ScoreProducer::unlimited)
OutputSparseFeatureScores( out, path, slf[i], lastName );
for( size_t i=0; i<slf.size(); i++ ) {
if (slf[i]->GetNumScoreComponents() == ScoreProducer::unlimited) {
OutputSparseFeatureScores( out, path, slf[i], lastName );
}
}
// total
out << " ||| " << path.GetTotalScore();