daily automatic beautifier

This commit is contained in:
MosesAdmin 2017-01-06 00:00:50 +00:00
parent 171edca393
commit 9fa538ce5c
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;