Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-12 10:51:28 +0400
committerhieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230>2006-07-12 10:51:28 +0400
commit38e4001a751e9833989fa64176337acaf2ac6b94 (patch)
treead724a8392de07406109bc7d0e1021e935840e01 /moses-cmd
parent3e0e05ecde3d3d513c241ad2b8b8aac3c37b5a70 (diff)
ScoreComponentCollection o be set instead of map
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@72 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-cmd')
-rwxr-xr-xmoses-cmd/src/IOCommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses-cmd/src/IOCommandLine.cpp b/moses-cmd/src/IOCommandLine.cpp
index ba09e383b..84663b975 100755
--- a/moses-cmd/src/IOCommandLine.cpp
+++ b/moses-cmd/src/IOCommandLine.cpp
@@ -142,7 +142,7 @@ void IOCommandLine::SetNBest(const LatticePathList &nBestList, long translationI
ScoreComponentCollection::const_iterator iterTrans;
for (iterTrans = transScoreComponent.begin() ; iterTrans != transScoreComponent.end() ; ++iterTrans)
{
- const ScoreComponent &transScore = iterTrans->second;
+ const ScoreComponent &transScore = *iterTrans;
for (size_t i = 0 ; i < NUM_PHRASE_SCORES ; i++)
{
m_nBestFile << transScore[i] << " ";