From 78a5f4297dcfce6c4a904322c2e989b612a6105a Mon Sep 17 00:00:00 2001 From: "graehl@gmail.com" Date: Sat, 7 Aug 2010 08:35:19 +0000 Subject: cdec -A "LanguageModelFsa lm.gz" works git-svn-id: https://ws10smt.googlecode.com/svn/trunk@490 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/cdec_ff.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'decoder/cdec_ff.cc') diff --git a/decoder/cdec_ff.cc b/decoder/cdec_ff.cc index 1ef50eb1..98d4711f 100644 --- a/decoder/cdec_ff.cc +++ b/decoder/cdec_ff.cc @@ -13,21 +13,23 @@ #include "ff_register.h" void register_feature_functions() { - RegisterFsaImpl(true,false); - RegisterFsaImpl(true,false); - RegisterFF(); - RegisterFsaImpl(true,false); // same as LM but using fsa wrapper - ff_registry.Register("LanguageModelFsaDynamic",new FFFactory > >); // test correctness of FsaFeatureFunctionDynamic erasure + //TODO: these are worthless example target FSA ffs. remove later + RegisterFsaImpl(true); + RegisterFsaImpl(true); + RegisterFsaImpl(true); +// ff_registry.Register("LanguageModelFsaDynamic",new FFFactory > >); // to test correctness of FsaFeatureFunctionDynamic erasure + RegisterFsaDynToFF(); + RegisterFsaImpl(true); // same as LM but using fsa wrapper RegisterFsaDynToFF(); + RegisterFF(); + RegisterFF(); RegisterFF(); RegisterFF(); RegisterFF(); - //TODO: worthless example target FSA ffs. remove later ff_registry.Register(new FFFactory); // same as WordPenalty, but implemented using ff_fsa - ff_registry.Register(new FFFactory >); //TODO: use for all features the new Register which requires static FF::usage(false,false) give name #ifdef HAVE_RANDLM -- cgit v1.2.3