diff options
author | heafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-09-24 18:48:52 +0400 |
---|---|---|
committer | heafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-09-24 18:48:52 +0400 |
commit | d40ba48da397efb9987386873ff5749c3bbc33d6 (patch) | |
tree | 3564c3c13d21c92927469ab58984c2596366b1a1 /moses-chart-cmd | |
parent | efddd0f39095d21ad192510d40cce86d251ac1b9 (diff) |
Replace hypothesis ids with pointers to ChartHypothesis. This avoids locking.
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4261 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-chart-cmd')
-rw-r--r-- | moses-chart-cmd/src/IOWrapper.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/moses-chart-cmd/src/IOWrapper.cpp b/moses-chart-cmd/src/IOWrapper.cpp index c52eea3df..bcbaf5384 100644 --- a/moses-chart-cmd/src/IOWrapper.cpp +++ b/moses-chart-cmd/src/IOWrapper.cpp @@ -268,8 +268,7 @@ void IOWrapper::OutputBestHypo(const ChartHypothesis *hypo, long translationId, VERBOSE(3,"0" << std::endl); if (StaticData::Instance().GetOutputHypoScore()) { - out << hypo->GetTotalScore() << " " - << ChartHypothesis::GetHypoCount() << " "; + out << hypo->GetTotalScore() << " "; } if (!m_surpressSingleBestOutput) { @@ -316,8 +315,7 @@ void IOWrapper::OutputNBestList(const ChartTrellisPathList &nBestList, const Cha // The output from -output-hypo-score is always written to std::cout. if (StaticData::Instance().GetOutputHypoScore()) { if (bestHypo != NULL) { - out << bestHypo->GetTotalScore() << " " - << ChartHypothesis::GetHypoCount() << " "; + out << bestHypo->GetTotalScore() << " "; } else { out << "0 "; } |