summaryrefslogtreecommitdiff
path: root/decoder
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
commit967e1c98980b07909b03ff5e3e71442cbeb216e8 (patch)
tree37149761e897ba48a3c40456347ff1df3bd24d79 /decoder
parent9beaeb42b71fa504bfa41a402cb17eb6ac4001af (diff)
merged, compiles but not working
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);
-}