Load KenLM with LAZY

Fixes #2384
This commit is contained in:
Alexandre Lissy 2019-09-26 18:12:13 +02:00
parent 513c8e9ab7
commit 86b44a7cb7

View File

@ -97,6 +97,7 @@ void Scorer::setup(const std::string& lm_path, const std::string& trie_path)
fill_dictionary(vocab, true); fill_dictionary(vocab, true);
} }
} else { } else {
config.load_method = util::LoadMethod::LAZY;
language_model_.reset(lm::ngram::LoadVirtual(filename, config)); language_model_.reset(lm::ngram::LoadVirtual(filename, config));
// Read metadata and trie from file // Read metadata and trie from file