diff options
author | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-09-05 14:55:11 +0100 |
---|---|---|
committer | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-09-05 14:55:11 +0100 |
commit | fb4a9cd8874976a1c013b880b342961b72a8c0d7 (patch) | |
tree | e75e21d414980b0f4d9953cea3eb43e8c8355261 /python/pkg/cdec/sa/__init__.py | |
parent | b34a325f1496eb4bbc33c5fe156eb7e28e5add27 (diff) |
Expose new feature extraction API
Diffstat (limited to 'python/pkg/cdec/sa/__init__.py')
-rw-r--r-- | python/pkg/cdec/sa/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/pkg/cdec/sa/__init__.py b/python/pkg/cdec/sa/__init__.py index ab8be809..cc532fb9 100644 --- a/python/pkg/cdec/sa/__init__.py +++ b/python/pkg/cdec/sa/__init__.py @@ -2,3 +2,9 @@ from cdec.sa._sa import sym_fromstring,\ SuffixArray, DataArray, LCP, Precomputation, Alignment, BiLex,\ HieroCachingRuleFactory, Sampler, Scorer from cdec.sa.extractor import GrammarExtractor + +_SA_FEATURES = [] + +def feature(fn): + _SA_FEATURES.append(fn) + return fn |