From 86b44a7cb7638cae0b4512e94ae1337ac3244580 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Thu, 26 Sep 2019 18:12:13 +0200 Subject: [PATCH] Load KenLM with LAZY Fixes #2384 --- native_client/ctcdecode/scorer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/native_client/ctcdecode/scorer.cpp b/native_client/ctcdecode/scorer.cpp index 55717d60..6a654cb9 100644 --- a/native_client/ctcdecode/scorer.cpp +++ b/native_client/ctcdecode/scorer.cpp @@ -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