diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2010-04-26 17:38:56 +0400 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2010-04-26 17:38:56 +0400 |
commit | 1c615ea75163ce29e5875e7d4a2bcfede56fc0a0 (patch) | |
tree | 9b0ec3b8e666fd7d2772b873611efe9d5f8e6742 /moses-chart-cmd/src | |
parent | 1a638746f389750cd7fbf8f7dfcdb43c75916d1f (diff) |
re-introduced the initialization and cleaning up into the constructor and destructor of Managers object. And I moved the check for LM cache cleanup into LanguageModelIRST
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3202 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses-chart-cmd/src')
-rw-r--r-- | moses-chart-cmd/src/Main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/moses-chart-cmd/src/Main.cpp b/moses-chart-cmd/src/Main.cpp index 9e43d424e..c614bc5f6 100644 --- a/moses-chart-cmd/src/Main.cpp +++ b/moses-chart-cmd/src/Main.cpp @@ -145,7 +145,6 @@ int main(int argc, char* argv[]) //cerr << *source << endl; MosesChart::Manager manager(*source); - StaticData::Instance().InitializeBeforeSentenceProcessing(*source); manager.ProcessSentence(); assert(!staticData.UseMBR()); @@ -202,8 +201,7 @@ int main(int argc, char* argv[]) IFVERBOSE(2) { PrintUserTime("Sentence Decoding Time:"); } - manager.CalcDecoderStatistics(); - StaticData::Instance().CleanUpAfterSentenceProcessing(lineCount); + manager.CalcDecoderStatistics(); } // while(ReadInput delete ioWrapper; |