summaryrefslogtreecommitdiff
path: root/src/cdec_ff.cc
blob: 846a908eaf214b09ed9e0653a9e7e6e90dc92aee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <boost/shared_ptr.hpp>

#include "ff.h"
#include "ff_lm.h"
#include "ff_csplit.h"
#include "ff_wordalign.h"
#include "ff_factory.h"

boost::shared_ptr<FFRegistry> global_ff_registry;

void register_feature_functions() {
  global_ff_registry->Register("LanguageModel", new FFFactory<LanguageModel>);
  global_ff_registry->Register("WordPenalty", new FFFactory<WordPenalty>);
  global_ff_registry->Register("RelativeSentencePosition", new FFFactory<RelativeSentencePosition>);
  global_ff_registry->Register("MarkovJump", new FFFactory<MarkovJump>);
  global_ff_registry->Register("BlunsomSynchronousParseHack", new FFFactory<BlunsomSynchronousParseHack>);
  global_ff_registry->Register("AlignerResults", new FFFactory<AlignerResults>);
  global_ff_registry->Register("CSplit_BasicFeatures", new FFFactory<BasicCSplitFeatures>);
  global_ff_registry->Register("CSplit_ReverseCharLM", new FFFactory<ReverseCharLMCSplitFeature>);
};