summaryrefslogtreecommitdiff
path: root/extools/featurize_grammar.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-13 19:51:48 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-13 19:51:48 +0000
commit4eb281af2a9a8538c934860456660ff792b44664 (patch)
treefb17c9c80f27a77723d8b2f3c69fa90939f89860 /extools/featurize_grammar.cc
parentb76e0f2213897effb4291822aed2c758a16ffaac (diff)
revert xsing features
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@239 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'extools/featurize_grammar.cc')
-rw-r--r--extools/featurize_grammar.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/extools/featurize_grammar.cc b/extools/featurize_grammar.cc
index cb80a79f..5c51fffe 100644
--- a/extools/featurize_grammar.cc
+++ b/extools/featurize_grammar.cc
@@ -371,15 +371,15 @@ struct XFeatures: public FeatureExtractor {
assert(t_c > 0);
result->set_value(fid_xfe, log(t_c) - l_r_freq);
result->set_value(fid_labelledfe, log(t_c) - log(info.counts.value(kCFE)));
- if (t_c == 1)
- result->set_value(fid_xesingleton, 1.0);
+// if (t_c == 1)
+// result->set_value(fid_xesingleton, 1.0);
const int s_c = source_counts(r.source());
assert(s_c > 0);
result->set_value(fid_xef, log(s_c) - l_r_freq);
result->set_value(fid_labelledef, log(s_c) - log(info.counts.value(kCFE)));
- if (s_c == 1)
- result->set_value(fid_xfsingleton, 1.0);
+// if (s_c == 1)
+// result->set_value(fid_xfsingleton, 1.0);
}
void map_rule(RuleTuple& r) const {