diff options
author | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-11 16:02:23 +0400 |
---|---|---|
committer | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-11 16:02:23 +0400 |
commit | 74c2cf34177adfb24a5b47c8964a50c5dcbae8c4 (patch) | |
tree | 002bbea6efdcaead6a388befca74ea6e1eccbd98 /moses-chart-cmd | |
parent | ed14ee12c0810c4f36def1433a5f244d99609bde (diff) |
fix bug in OutputNBestList
Diffstat (limited to 'moses-chart-cmd')
-rw-r--r-- | moses-chart-cmd/src/IOWrapper.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/moses-chart-cmd/src/IOWrapper.cpp b/moses-chart-cmd/src/IOWrapper.cpp index d758f97d8..fcdd82bdc 100644 --- a/moses-chart-cmd/src/IOWrapper.cpp +++ b/moses-chart-cmd/src/IOWrapper.cpp @@ -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(); |