mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 06:50:32 +03:00
daily automatic beautifier
This commit is contained in:
parent
171edca393
commit
9fa538ce5c
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user