diff options
author | Adam Lopez <alopez@cs.jhu.edu> | 2012-09-06 03:27:34 -0400 |
---|---|---|
committer | Adam Lopez <alopez@cs.jhu.edu> | 2012-09-06 03:27:34 -0400 |
commit | 86b272c97ed8b608f2411c96b8eec57c7e3f0470 (patch) | |
tree | 72da5f7601a731851b53d371d032ff0a8741d81e /python/pkg/cdec/sa/extractor.py | |
parent | f99b04588d3725f28d13dcdfcbc0846cc1c52321 (diff) | |
parent | dba6e87082501a66d8c444ebcd7ed6bd756aaf23 (diff) |
Merge
Diffstat (limited to 'python/pkg/cdec/sa/extractor.py')
-rw-r--r-- | python/pkg/cdec/sa/extractor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/pkg/cdec/sa/extractor.py b/python/pkg/cdec/sa/extractor.py index 89e35bf8..940544fb 100644 --- a/python/pkg/cdec/sa/extractor.py +++ b/python/pkg/cdec/sa/extractor.py @@ -57,6 +57,8 @@ class GrammarExtractor: # lexical weighting tables tt = cdec.sa.BiLex(from_binary=config['lex_file']) + # TODO: use @cdec.sa.features decorator for standard features too + # + add a mask to disable features scorer = cdec.sa.Scorer(EgivenFCoherent, SampleCountF, CountEF, MaxLexFgivenE(tt), MaxLexEgivenF(tt), IsSingletonF, IsSingletonFE, *cdec.sa._SA_FEATURES) |