summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
Diffstat (limited to 'decoder')
-rw-r--r--decoder/ff_klm.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/decoder/ff_klm.cc b/decoder/ff_klm.cc
index 28bcb6b9..ed6f731e 100644
--- a/decoder/ff_klm.cc
+++ b/decoder/ff_klm.cc
@@ -392,22 +392,3 @@ std::string KLanguageModelFactory::usage(bool params,bool verbose) const {
return KLanguageModel<lm::ngram::Model>::usage(params, verbose);
}
- switch (m) {
- case HASH_PROBING:
- return CreateModel<ProbingModel>(param);
- case TRIE_SORTED:
- return CreateModel<TrieModel>(param);
- case ARRAY_TRIE_SORTED:
- return CreateModel<ArrayTrieModel>(param);
- case QUANT_TRIE_SORTED:
- return CreateModel<QuantTrieModel>(param);
- case QUANT_ARRAY_TRIE_SORTED:
- return CreateModel<QuantArrayTrieModel>(param);
- default:
- UTIL_THROW(util::Exception, "Unrecognized kenlm binary file type " << (unsigned)m);
- }
-}
-
-std::string KLanguageModelFactory::usage(bool params,bool verbose) const {
- return KLanguageModel<lm::ngram::Model>::usage(params, verbose);
-}