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:
authorheafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230>2011-09-24 18:48:52 +0400
committerheafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230>2011-09-24 18:48:52 +0400
commitd40ba48da397efb9987386873ff5749c3bbc33d6 (patch)
tree3564c3c13d21c92927469ab58984c2596366b1a1 /moses-chart-cmd
parentefddd0f39095d21ad192510d40cce86d251ac1b9 (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.cpp6
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 ";
}