diff options
author | Wu, Ke <wuke@cs.umd.edu> | 2014-10-10 17:33:51 -0400 |
---|---|---|
committer | Wu, Ke <wuke@cs.umd.edu> | 2014-10-10 17:33:51 -0400 |
commit | e632e84862109742b81f3bf32d5133660e01a33c (patch) | |
tree | b002b1436a10389867fc354b3dc268ece4e462db | |
parent | d4d2d2a98629c6358e90b0323712a333e6e8aaef (diff) |
Remove ConstReorderFeatureFactory
-rw-r--r-- | decoder/cdec_ff.cc | 2 | ||||
-rw-r--r-- | decoder/ff_const_reorder.cc | 9 | ||||
-rw-r--r-- | decoder/ff_const_reorder.h | 5 |
3 files changed, 1 insertions, 15 deletions
diff --git a/decoder/cdec_ff.cc b/decoder/cdec_ff.cc index e7a8bbc1..6f7227aa 100644 --- a/decoder/cdec_ff.cc +++ b/decoder/cdec_ff.cc @@ -78,6 +78,6 @@ void register_feature_functions() { ff_registry.Register("WordPairFeatures", new FFFactory<WordPairFeatures>); ff_registry.Register("SourcePathFeatures", new FFFactory<SourcePathFeatures>); ff_registry.Register("WordSet", new FFFactory<WordSet>); - ff_registry.Register("ConstReorderFeature", new ConstReorderFeatureFactory()); + ff_registry.Register("ConstReorderFeature", new FFFactory<ConstReorderFeature>); ff_registry.Register("External", new FFFactory<ExternalFeature>); } diff --git a/decoder/ff_const_reorder.cc b/decoder/ff_const_reorder.cc index 96fc5f56..d29820ef 100644 --- a/decoder/ff_const_reorder.cc +++ b/decoder/ff_const_reorder.cc @@ -1372,12 +1372,3 @@ boost::shared_ptr<FeatureFunction> CreateConstReorderModel( ConstReorderFeature* ret = new ConstReorderFeature(param); return boost::shared_ptr<FeatureFunction>(ret); } - -boost::shared_ptr<FeatureFunction> ConstReorderFeatureFactory::Create( - std::string param) const { - return CreateConstReorderModel(param); -} - -std::string ConstReorderFeatureFactory::usage(bool params, bool verbose) const { - return ConstReorderFeature::usage(params, verbose); -} diff --git a/decoder/ff_const_reorder.h b/decoder/ff_const_reorder.h index 5079486f..a5be02d0 100644 --- a/decoder/ff_const_reorder.h +++ b/decoder/ff_const_reorder.h @@ -40,9 +40,4 @@ class ConstReorderFeature : public FeatureFunction { ConstReorderFeatureImpl* pimpl_; }; -struct ConstReorderFeatureFactory : public FactoryBase<FeatureFunction> { - FP Create(std::string param) const; - std::string usage(bool params, bool verbose) const; -}; - #endif /* FF_CONST_REORDER_H_ */ |