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 | 19e0a382269042605c347b48e5ac92c5012f1ccc (patch) | |
tree | 966cac5e26788c1225e1e20257547902a3ba6be7 /decoder/ff_csplit.h | |
parent | b749a9ce861a1f800a0837a90e1376e4e5fc6739 (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_; }; |