diff options
author | Michael Denkowski <michael.j.denkowski@gmail.com> | 2013-01-28 14:21:22 -0500 |
---|---|---|
committer | Michael Denkowski <michael.j.denkowski@gmail.com> | 2013-01-28 14:21:22 -0500 |
commit | 2dd5feffac709c2628a593d76eaff590f22f226c (patch) | |
tree | 47d29500d4862cb139edadca655b4693ec3b661f /python/pkg/cdec/sa/extractor.py | |
parent | 0a6dbb8aefb1662a68f3f14f0c42a72150d8be03 (diff) |
Bilexical scores for online rules
Diffstat (limited to 'python/pkg/cdec/sa/extractor.py')
-rw-r--r-- | python/pkg/cdec/sa/extractor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/pkg/cdec/sa/extractor.py b/python/pkg/cdec/sa/extractor.py index bb552c49..cd3ab899 100644 --- a/python/pkg/cdec/sa/extractor.py +++ b/python/pkg/cdec/sa/extractor.py @@ -61,13 +61,14 @@ class GrammarExtractor: # TODO: clean this up extended_features = [] extended_features.append(IsSupportedOnline) - #if online: - # extended_features.append(IsSupportedOnline) + if online: + extended_features.append(IsSupportedOnline) # TODO: use @cdec.sa.features decorator for standard features too # + add a mask to disable features for f in cdec.sa._SA_FEATURES: extended_features.append(f) + scorer = cdec.sa.Scorer(EgivenFCoherent, SampleCountF, CountEF, MaxLexFgivenE(tt), MaxLexEgivenF(tt), IsSingletonF, IsSingletonFE, *extended_features) |