Merge pull request #2385 from lissyx/lm-lazy

Load KenLM with LAZY
This commit is contained in:
lissyx 2019-09-26 23:13:48 +02:00 committed by GitHub
commit 9f988de6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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