summaryrefslogtreecommitdiff
path: root/decoder/ff.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-02-10 18:45:13 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2011-02-10 18:45:13 -0500
commit9a695967a5e4efc987b61bb3df90c0558c678512 (patch)
tree2ba3feb890e5fa1565fdffed6b58756d5ab30e08 /decoder/ff.h
parent70fdb6cd8774cbd0114fe0d630781bab309e0d87 (diff)
multipass decoding
Diffstat (limited to 'decoder/ff.h')
-rw-r--r--decoder/ff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ff.h b/decoder/ff.h
index e470f9a9..89b8b067 100644
--- a/decoder/ff.h
+++ b/decoder/ff.h
@@ -40,6 +40,7 @@ class FeatureFunction {
FeatureFunction() : state_size_() {}
explicit FeatureFunction(int state_size) : state_size_(state_size) {}
virtual ~FeatureFunction();
+ bool IsStateful() const { return state_size_ > 0; }
// override this. not virtual because we want to expose this to factory template for help before creating a FF
static std::string usage(bool show_params,bool show_details) {