summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorJonathan Clark <jon.h.clark@gmail.com>2011-03-14 17:05:14 -0400
committerJonathan Clark <jon.h.clark@gmail.com>2011-03-14 17:05:14 -0400
commit5d0f3c6aa4e78aea09952a7a65f61d3c4dce0a0e (patch)
treeb13d383127a76fa01099c7d9acf5b8d79147b91a /decoder
parentdccf47501f078a354375b9f3edd481d8c8d30268 (diff)
Fix wordset to override features() so that we can safely use multiple instances of it
Diffstat (limited to 'decoder')
-rw-r--r--decoder/ff_wordset.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ff_wordset.h b/decoder/ff_wordset.h
index 00e1145b..643097ef 100644
--- a/decoder/ff_wordset.h
+++ b/decoder/ff_wordset.h
@@ -32,6 +32,7 @@ class WordSet : public FeatureFunction {
~WordSet() {
}
+ Features features() const { return single_feature(fid_); }
protected:
virtual void TraversalFeaturesImpl(const SentenceMetadata& smeta,