From 5ced7dafa49c51e9353413b82ecd6402d4a93dd6 Mon Sep 17 00:00:00 2001 From: graehl Date: Thu, 15 Jul 2010 03:50:18 +0000 Subject: fsa model sketch git-svn-id: https://ws10smt.googlecode.com/svn/trunk@260 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/ff_fsa.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 decoder/ff_fsa.h diff --git a/decoder/ff_fsa.h b/decoder/ff_fsa.h new file mode 100755 index 00000000..cd56f1a5 --- /dev/null +++ b/decoder/ff_fsa.h @@ -0,0 +1,34 @@ +#ifndef FF_FSA_H +#define FF_FSA_H + +#include +#include "ff.h" +#include "sparse_vector.h" +/* + + */ +struct FsaFeatureFunction { + std::string name; + + // state for backoff + + // scan + + // heuristic + + // all strings x of this length must end in the same state + virtual int MarkovOrder() const { + return 0; + } + + +}; + + +// regular bottom up scorer from Fsa feature +template +struct FeatureFunctionFromFsa { +}; + + +#endif -- cgit v1.2.3