summaryrefslogtreecommitdiff
path: root/decoder/ff_klm.cc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-10-19 20:56:22 +0200
committerPatrick Simianer <p@simianer.de>2011-10-19 20:56:22 +0200
commitef2df950520a47ca7011736648334eedeae5297a (patch)
treefeb7893845075429573ca935e7f6b130132f2381 /decoder/ff_klm.cc
parenteb14e36d0b29f19321d44dd7dfa73cc703838d86 (diff)
merged, compiles but not working
Diffstat (limited to 'decoder/ff_klm.cc')
-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);
-}