diff options
author | pjwilliams <pjwilliams@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-07-19 01:44:27 +0400 |
---|---|---|
committer | pjwilliams <pjwilliams@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-07-19 01:44:27 +0400 |
commit | beba4b475f7dd349073d3e0d8e720837deb2401b (patch) | |
tree | f022f0ea4f87fc5b78cf6cc55f309d389d33bbaf /moses-chart-cmd | |
parent | 1190b75528ca797286985c90aa3d84e37ea0a1a3 (diff) |
moses_chart: merge DottedRule and CoveredChartSpan classes. This saves
some memory for models that require a lot of lookup state (generally
grammars with lots of target categories).
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4078 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-chart-cmd')
-rw-r--r-- | moses-chart-cmd/src/IOWrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses-chart-cmd/src/IOWrapper.cpp b/moses-chart-cmd/src/IOWrapper.cpp index 31ec4c4ee..48f9bd7ca 100644 --- a/moses-chart-cmd/src/IOWrapper.cpp +++ b/moses-chart-cmd/src/IOWrapper.cpp @@ -45,7 +45,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "ChartTrellisPath.h" #include "ChartTranslationOption.h" #include "ChartHypothesis.h" -#include "CoveredChartSpan.h" +#include "DotChart.h" using namespace std; @@ -229,7 +229,7 @@ void OutputTranslationOptions(std::ostream &out, const ChartHypothesis *hypo, lo if (hypo != NULL) { out << "Trans Opt " << translationId << " " << hypo->GetCurrSourceRange() - << ": " << hypo->GetTranslationOption().GetLastCoveredChartSpan() + << ": " << hypo->GetTranslationOption().GetDottedRule() << ": " << hypo->GetCurrTargetPhrase().GetTargetLHS() << "->" << hypo->GetCurrTargetPhrase() << " " << hypo->GetTotalScore() << hypo->GetScoreBreakdown() |