diff --git a/moses/LM/InMemoryPerSentenceOnDemandLM.cpp b/moses/LM/InMemoryPerSentenceOnDemandLM.cpp index 12ef78f4e..364aebe42 100644 --- a/moses/LM/InMemoryPerSentenceOnDemandLM.cpp +++ b/moses/LM/InMemoryPerSentenceOnDemandLM.cpp @@ -17,7 +17,7 @@ using namespace std; namespace Moses { - InMemoryPerSentenceOnDemandLM::InMemoryPerSentenceOnDemandLM(const std::string &line) : LanguageModel(line), initialized(false) +InMemoryPerSentenceOnDemandLM::InMemoryPerSentenceOnDemandLM(const std::string &line) : LanguageModel(line), initialized(false) { ReadParameters(); } @@ -26,7 +26,8 @@ InMemoryPerSentenceOnDemandLM::~InMemoryPerSentenceOnDemandLM() { } -void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask) { +void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask) +{ // The context scope object for this translation task // contains a map of translation task-specific data @@ -63,14 +64,15 @@ void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask) { VERBOSE(1, filename); if (initialized) { - VERBOSE(1, "\tLM initialized\n"); + VERBOSE(1, "\tLM initialized\n"); } // std::remove(filename); } -LanguageModelKen& InMemoryPerSentenceOnDemandLM::GetPerThreadLM() const { +LanguageModelKen& InMemoryPerSentenceOnDemandLM::GetPerThreadLM() const +{ LanguageModelKen *lm; lm = m_perThreadLM.get(); diff --git a/moses/LM/InMemoryPerSentenceOnDemandLM.h b/moses/LM/InMemoryPerSentenceOnDemandLM.h index f0c1effa7..022ba9289 100644 --- a/moses/LM/InMemoryPerSentenceOnDemandLM.h +++ b/moses/LM/InMemoryPerSentenceOnDemandLM.h @@ -89,7 +89,7 @@ public: virtual void sync() { GetPerThreadLM().sync(); } - + virtual void SetFFStateIdx(int state_idx) { if (initialized) { GetPerThreadLM().SetFFStateIdx(state_idx); @@ -107,7 +107,7 @@ public: GetPerThreadLM().ReportHistoryOrder(out, phrase); } } - + virtual void EvaluateInIsolation(const Phrase &source , const TargetPhrase &targetPhrase , ScoreComponentCollection &scoreBreakdown