diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-03 20:11:39 +0400 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-03 20:11:39 +0400 |
commit | 23d9a9b55e620fc826cc53ba4fa648f2e2a65c3c (patch) | |
tree | ab54fc32500873b8e1110edd05a21a5c62e434a3 /moses-chart-cmd | |
parent | 47e452a076b3112561bb68127aee7a68467ed1ed (diff) |
normalization of output spaces before and after field separator
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4293 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-chart-cmd')
-rw-r--r-- | moses-chart-cmd/src/IOWrapper.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/moses-chart-cmd/src/IOWrapper.cpp b/moses-chart-cmd/src/IOWrapper.cpp index bcbaf5384..f032cd6a1 100644 --- a/moses-chart-cmd/src/IOWrapper.cpp +++ b/moses-chart-cmd/src/IOWrapper.cpp @@ -340,7 +340,7 @@ void IOWrapper::OutputNBestList(const ChartTrellisPathList &nBestList, const Cha // print the surface factor of the translation out << translationId << " ||| "; OutputSurface(out, outputPhrase, m_outputFactorOrder, false); - out << " ||| "; + out << " |||"; // print the scores in a hardwired order // before each model type, the corresponding command-line-like name must be emitted @@ -350,10 +350,10 @@ void IOWrapper::OutputNBestList(const ChartTrellisPathList &nBestList, const Cha const LMList& lml = system->GetLanguageModels(); if (lml.size() > 0) { if (labeledOutput) - out << "lm: "; + out << "lm:"; LMList::const_iterator lmi = lml.begin(); for (; lmi != lml.end(); ++lmi) { - out << path.GetScoreBreakdown().GetScoreForProducer(*lmi) << " "; + out << " " << path.GetScoreBreakdown().GetScoreForProducer(*lmi); } } @@ -382,8 +382,8 @@ void IOWrapper::OutputNBestList(const ChartTrellisPathList &nBestList, const Cha // word penalty if (labeledOutput) - out << " w: "; - out << path.GetScoreBreakdown().GetScoreForProducer(system->GetWordPenaltyProducer()) << " "; + out << " w:"; + out << " " << path.GetScoreBreakdown().GetScoreForProducer(system->GetWordPenaltyProducer()); // generation const vector<GenerationDictionary*>& gds = system->GetGenerationDictionaries(); @@ -407,7 +407,7 @@ void IOWrapper::OutputNBestList(const ChartTrellisPathList &nBestList, const Cha // total - out << "||| " << path.GetTotalScore(); + out << " |||" << path.GetTotalScore(); /* if (includeAlignment) { |