From d4907ddee2012dce728bd1a6eb4e6cad452a54b2 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 23 Dec 2010 14:50:41 -0600 Subject: support different types in kenlm --- decoder/ff_klm.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'decoder/ff_klm.h') diff --git a/decoder/ff_klm.h b/decoder/ff_klm.h index 0569286f..95e1e897 100644 --- a/decoder/ff_klm.h +++ b/decoder/ff_klm.h @@ -5,9 +5,13 @@ #include #include "ff.h" +#include "lm/model.hh" -struct KLanguageModelImpl; +template struct KLanguageModelImpl; +// the supported template types are instantiated explicitly +// in ff_klm.cc. +template class KLanguageModel : public FeatureFunction { public: // param = "filename.lm [-o n]" @@ -26,7 +30,7 @@ class KLanguageModel : public FeatureFunction { void* out_context) const; private: int fid_; // conceptually const; mutable only to simplify constructor - KLanguageModelImpl* pimpl_; + KLanguageModelImpl* pimpl_; }; #endif -- cgit v1.2.3