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
commit93618c0fcce1544bf948172d04e764f53073cf8a (patch)
tree50e37483ad7e024e77e34e8474ff8d9aafd95a8c /decoder/ff.h
parentb81db79949959b77431dda892162989b95bd1e97 (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) {