From 213de03f50676d9930ea26c853623111fd758b67 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Wed, 16 May 2012 13:27:02 -0700 Subject: And actually allow ff_klm.cc to load RestProbingModel --- decoder/ff_klm.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/decoder/ff_klm.cc b/decoder/ff_klm.cc index a4b26f7c..7a84add7 100644 --- a/decoder/ff_klm.cc +++ b/decoder/ff_klm.cc @@ -373,15 +373,17 @@ boost::shared_ptr KLanguageModelFactory::Create(std::string par if (!RecognizeBinary(filename.c_str(), m)) m = HASH_PROBING; switch (m) { - case HASH_PROBING: + case PROBING: return CreateModel(param); - case TRIE_SORTED: + case REST_PROBING: + return CreateModel(param); + case TRIE: return CreateModel(param); - case ARRAY_TRIE_SORTED: + case ARRAY_TRIE: return CreateModel(param); - case QUANT_TRIE_SORTED: + case QUANT_TRIE: return CreateModel(param); - case QUANT_ARRAY_TRIE_SORTED: + case QUANT_ARRAY_TRIE: return CreateModel(param); default: UTIL_THROW(util::Exception, "Unrecognized kenlm binary file type " << (unsigned)m); -- cgit v1.2.3