summaryrefslogtreecommitdiff
path: root/python/pkg/cdec/sa/extractor.py
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-05 19:17:29 +0100
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-05 19:17:29 +0100
commitb939bff222736e87fa234c2835511cc29fce644f (patch)
tree869aeabb86e5ce4ab4f9bdb7924f3c6233e1a051 /python/pkg/cdec/sa/extractor.py
parentc6b35eff2537f0b07ceb9aca499e8f76b3d33710 (diff)
Revert to the "old style" pair count...
+ API naming fixes + Multiple feature definition files can be passed to the extractor
Diffstat (limited to 'python/pkg/cdec/sa/extractor.py')
-rw-r--r--python/pkg/cdec/sa/extractor.py2
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)