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
commit89a846f43f4b9dfccf04ecc6a68064c2ffdefe4b (patch)
tree113f7c32157ed3f6535354755cc0baef4c1a4cdd /decoder
parent0cb8fdc99b9bb69b047e2e4c27fd975578be6875 (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,