diff options
author | MosesAdmin <moses-support-owner@mit.edu> | 2017-01-06 03:00:50 +0300 |
---|---|---|
committer | MosesAdmin <moses-support-owner@mit.edu> | 2017-01-06 03:00:50 +0300 |
commit | 9fa538ce5c77a4478f36b27b8ccd8502c18df62f (patch) | |
tree | 4c673cdb8c920eee3dba99b3af3590558c682aca /moses | |
parent | 171edca393b3887de2fc433a5cf19960295e1cc0 (diff) |
daily automatic beautifier
Diffstat (limited to 'moses')
-rw-r--r-- | moses/LM/InMemoryPerSentenceOnDemandLM.cpp | 6 | ||||
-rw-r--r-- | moses/LM/InMemoryPerSentenceOnDemandLM.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/moses/LM/InMemoryPerSentenceOnDemandLM.cpp b/moses/LM/InMemoryPerSentenceOnDemandLM.cpp index 82c198ca1..f45c7917c 100644 --- a/moses/LM/InMemoryPerSentenceOnDemandLM.cpp +++ b/moses/LM/InMemoryPerSentenceOnDemandLM.cpp @@ -25,7 +25,7 @@ InMemoryPerSentenceOnDemandLM::InMemoryPerSentenceOnDemandLM(const std::string & InMemoryPerSentenceOnDemandLM::~InMemoryPerSentenceOnDemandLM() { } - + void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask) { @@ -60,7 +60,7 @@ void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask) // m_tmpFilename.reset(new std::string("/home/lanes/mosesdecoder/tiny.with_per_sentence/europarl.en.srilm")); m_tmpFilename.reset(new std::string(filename)); - //LanguageModelKen<lm::ngram::ProbingModel> & lm = + //LanguageModelKen<lm::ngram::ProbingModel> & lm = GetPerThreadLM(); // std::remove(filename); @@ -83,7 +83,7 @@ LanguageModelKen<lm::ngram::ProbingModel>& InMemoryPerSentenceOnDemandLM::GetPer } VERBOSE(1, filename); - VERBOSE(1, "\tLM initialized\n"); + VERBOSE(1, "\tLM initialized\n"); m_perThreadLM.reset(lm); } diff --git a/moses/LM/InMemoryPerSentenceOnDemandLM.h b/moses/LM/InMemoryPerSentenceOnDemandLM.h index eeaebbe17..7f4b60a5f 100644 --- a/moses/LM/InMemoryPerSentenceOnDemandLM.h +++ b/moses/LM/InMemoryPerSentenceOnDemandLM.h @@ -153,7 +153,7 @@ protected: FactorType m_factorType; bool isInitialized() const { - if (m_tmpFilename.get() == NULL) { + if (m_tmpFilename.get() == NULL) { return false; } else { return true; |