mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-26 11:28:48 +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()
|
InMemoryPerSentenceOnDemandLM::~InMemoryPerSentenceOnDemandLM()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask)
|
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("/home/lanes/mosesdecoder/tiny.with_per_sentence/europarl.en.srilm"));
|
||||||
m_tmpFilename.reset(new std::string(filename));
|
m_tmpFilename.reset(new std::string(filename));
|
||||||
|
|
||||||
//LanguageModelKen<lm::ngram::ProbingModel> & lm =
|
//LanguageModelKen<lm::ngram::ProbingModel> & lm =
|
||||||
GetPerThreadLM();
|
GetPerThreadLM();
|
||||||
|
|
||||||
// std::remove(filename);
|
// std::remove(filename);
|
||||||
@ -83,7 +83,7 @@ LanguageModelKen<lm::ngram::ProbingModel>& InMemoryPerSentenceOnDemandLM::GetPer
|
|||||||
}
|
}
|
||||||
|
|
||||||
VERBOSE(1, filename);
|
VERBOSE(1, filename);
|
||||||
VERBOSE(1, "\tLM initialized\n");
|
VERBOSE(1, "\tLM initialized\n");
|
||||||
|
|
||||||
m_perThreadLM.reset(lm);
|
m_perThreadLM.reset(lm);
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ protected:
|
|||||||
FactorType m_factorType;
|
FactorType m_factorType;
|
||||||
|
|
||||||
bool isInitialized() const {
|
bool isInitialized() const {
|
||||||
if (m_tmpFilename.get() == NULL) {
|
if (m_tmpFilename.get() == NULL) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user