summaryrefslogtreecommitdiff
path: root/decoder/ff_lm.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-08 23:27:05 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-08 23:27:05 +0000
commit471b69d38404452e5150d1955d4dc96744cbbeda (patch)
tree7c0982f2721593480bbc699ffecb7ad0f6c15458 /decoder/ff_lm.h
parent11f476baf7d855198413b091cae775bde4ea41ed (diff)
feature functions support e.g. --usage=LanguageModel, report feature ids, warn about duplicate ids, 0-expand weight vector for no segfault, --warn_0_weight, and know their own names to simplify registration
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@192 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_lm.h')
-rw-r--r--decoder/ff_lm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ff_lm.h b/decoder/ff_lm.h
index 5ea41068..935e283c 100644
--- a/decoder/ff_lm.h
+++ b/decoder/ff_lm.h
@@ -19,6 +19,7 @@ class LanguageModel : public FeatureFunction {
SparseVector<double>* features) const;
std::string DebugStateToString(const void* state) const;
static std::string usage(bool param,bool verbose);
+ Features features() const;
protected:
virtual void TraversalFeaturesImpl(const SentenceMetadata& smeta,
const Hypergraph::Edge& edge,