summaryrefslogtreecommitdiff
path: root/decoder/cdec_ff.cc
diff options
context:
space:
mode:
authorjon.h.clark <jon.h.clark@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-12 20:22:56 +0000
committerjon.h.clark <jon.h.clark@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-12 20:22:56 +0000
commit29c93ee69d4507eee05b7693e5a781643e8339d4 (patch)
treef8159b5bd6a1208c167df70addc67f91b25de3dc /decoder/cdec_ff.cc
parent64b541ab1490476f662a2bfeb66f237e3e2ed839 (diff)
Gross hack for compiling GLC as a library. Currently has hardcoded path, but shouldn't break the build.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@716 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cdec_ff.cc')
-rw-r--r--decoder/cdec_ff.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/decoder/cdec_ff.cc b/decoder/cdec_ff.cc
index 09a19a7b..3953118c 100644
--- a/decoder/cdec_ff.cc
+++ b/decoder/cdec_ff.cc
@@ -12,6 +12,11 @@
#include "ff_lm_fsa.h"
#include "ff_sample_fsa.h"
#include "ff_register.h"
+#include "ff_wordset.h"
+
+#ifdef HAVE_GLC
+#include <cdec/ff_glc.h>
+#endif
void register_feature_functions() {
static bool registered = false;
@@ -59,5 +64,9 @@ void register_feature_functions() {
ff_registry.Register("OutputIdentity", new FFFactory<OutputIdentity>);
ff_registry.Register("InputIdentity", new FFFactory<InputIdentity>);
ff_registry.Register("LexicalTranslationTrigger", new FFFactory<LexicalTranslationTrigger>);
+ ff_registry.Register("WordSet", new FFFactory<WordSet>);
+#ifdef HAVE_GLC
+ ff_registry.Register("ContextCRF", new FFFactory<Model1Features>);
+#endif
}