From 93618c0fcce1544bf948172d04e764f53073cf8a Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 10 Feb 2011 18:45:13 -0500 Subject: multipass decoding --- decoder/ff.h | 1 + 1 file changed, 1 insertion(+) (limited to 'decoder/ff.h') 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) { -- cgit v1.2.3