parent
513c8e9ab7
commit
86b44a7cb7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user