From cb094b00983dabc0393d1fab40b3450266c7c8a9 Mon Sep 17 00:00:00 2001 From: "olivia.buzek" Date: Wed, 21 Jul 2010 20:13:27 +0000 Subject: Fixing errors. git-svn-id: https://ws10smt.googlecode.com/svn/trunk@361 ec762483-ff6d-05da-a07a-a48fb63a330f --- extools/featurize_grammar.cc | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'extools/featurize_grammar.cc') diff --git a/extools/featurize_grammar.cc b/extools/featurize_grammar.cc index 5c51fffe..2fc53ff9 100644 --- a/extools/featurize_grammar.cc +++ b/extools/featurize_grammar.cc @@ -306,22 +306,6 @@ struct RulePenalty : public FeatureExtractor { const int fid_; }; -struct BackoffRule : public FeatureExtractor { - BackoffRule() : fid_(FD::Convert("BackoffRule")) {} - - virtual void ExtractFeatures(const WordID lhs, - const vector& src, - const vector& trg, - const RuleStatistics& /*info*/, - SparseVector* result) const { - (void) lhs; (void) src; (void) trg; - const string& lhstr = TD::Convert(lhs); - if(lhstr.find('_')!=string::npos) - result->set_value(fid_, -1); - } - const int fid_; -}; - // The negative log of the condition rule probs // ignoring the identities of the non-terminals. // i.e. the prob Hiero would assign. @@ -702,7 +686,6 @@ int main(int argc, char** argv){ reg.Register("LexProb", new FEFactory); reg.Register("XFeatures", new FEFactory); reg.Register("LabelledRuleConditionals", new FEFactory); - reg.Register("BackoffRule", new FEFactory); reg.Register("RulePenalty", new FEFactory); reg.Register("LHSProb", new FEFactory); reg.Register("LabellingShape", new FEFactory); -- cgit v1.2.3