diff options
author | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-11-13 21:14:40 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-11-13 21:14:40 +0400 |
commit | 253f32a2e51a4607692ed14c36fb1419325ba91f (patch) | |
tree | 881d2c8402dd0c8c36e702cb6c16bf20a0119962 /moses-chart-cmd | |
parent | 953f2200ffef1ce9c5a1c2eee9830d5483144222 (diff) |
load hiero format for reading suffix arrays
Diffstat (limited to 'moses-chart-cmd')
-rw-r--r-- | moses-chart-cmd/src/IOWrapper.cpp | 4 | ||||
-rw-r--r-- | moses-chart-cmd/src/IOWrapper.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/moses-chart-cmd/src/IOWrapper.cpp b/moses-chart-cmd/src/IOWrapper.cpp index f032cd6a1..b5d503133 100644 --- a/moses-chart-cmd/src/IOWrapper.cpp +++ b/moses-chart-cmd/src/IOWrapper.cpp @@ -129,6 +129,10 @@ IOWrapper::~IOWrapper() delete m_singleBestOutputCollector; } +void IOWrapper::ResetTranslationId() { + m_translationId = StaticData::Instance().GetStartTranslationId(); +} + InputType*IOWrapper::GetInput(InputType* inputType) { if(inputType->Read(*m_inputStream, m_inputFactorOrder)) { diff --git a/moses-chart-cmd/src/IOWrapper.h b/moses-chart-cmd/src/IOWrapper.h index c606774e1..5936e7405 100644 --- a/moses-chart-cmd/src/IOWrapper.h +++ b/moses-chart-cmd/src/IOWrapper.h @@ -85,9 +85,7 @@ public: void OutputDetailedTranslationReport(const Moses::ChartHypothesis *hypo, long translationId); void Backtrack(const Moses::ChartHypothesis *hypo); - void ResetTranslationId() { - m_translationId = 0; - } + void ResetTranslationId(); Moses::OutputCollector *GetSearchGraphOutputCollector() { return m_searchGraphOutputCollector; |