From 9fa538ce5c77a4478f36b27b8ccd8502c18df62f Mon Sep 17 00:00:00 2001 From: MosesAdmin Date: Fri, 6 Jan 2017 00:00:50 +0000 Subject: [PATCH] daily automatic beautifier --- moses/LM/InMemoryPerSentenceOnDemandLM.cpp | 6 +++--- 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 = + //LanguageModelKen & lm = GetPerThreadLM(); // std::remove(filename); @@ -83,7 +83,7 @@ LanguageModelKen& 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;