diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-10 01:58:30 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-10 01:58:30 -0500 |
commit | 4f9933d668d247ea5831c3f2af0b996a94da28f7 (patch) | |
tree | 965f1ade8619dbb7387a3b33d29f157e04a6fff2 /decoder/ff_csplit.h | |
parent | 0acaff8e91fbec0699da8c4a84fdba8c4be9c229 (diff) |
remove dependency on SRILM
Diffstat (limited to 'decoder/ff_csplit.h')
-rw-r--r-- | decoder/ff_csplit.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/decoder/ff_csplit.h b/decoder/ff_csplit.h index c1cfb64b..38c0c5b8 100644 --- a/decoder/ff_csplit.h +++ b/decoder/ff_csplit.h @@ -4,6 +4,7 @@ #include <boost/shared_ptr.hpp> #include "ff.h" +#include "klm/lm/model.hh" class BasicCSplitFeaturesImpl; class BasicCSplitFeatures : public FeatureFunction { @@ -20,7 +21,7 @@ class BasicCSplitFeatures : public FeatureFunction { boost::shared_ptr<BasicCSplitFeaturesImpl> pimpl_; }; -class ReverseCharLMCSplitFeatureImpl; +template <class M> class ReverseCharLMCSplitFeatureImpl; class ReverseCharLMCSplitFeature : public FeatureFunction { public: ReverseCharLMCSplitFeature(const std::string& param); @@ -32,7 +33,7 @@ class ReverseCharLMCSplitFeature : public FeatureFunction { SparseVector<double>* estimated_features, void* out_context) const; private: - boost::shared_ptr<ReverseCharLMCSplitFeatureImpl> pimpl_; + boost::shared_ptr<ReverseCharLMCSplitFeatureImpl<lm::ngram::ProbingModel> > pimpl_; const int fid_; }; |