summaryrefslogtreecommitdiff
path: root/python/src/sa/rulefactory.pxi
diff options
context:
space:
mode:
authorAdam Lopez <alopez@cs.jhu.edu>2012-09-05 13:15:17 -0400
committerAdam Lopez <alopez@cs.jhu.edu>2012-09-05 13:15:17 -0400
commitf99b04588d3725f28d13dcdfcbc0846cc1c52321 (patch)
tree9021910e1a7f3c36d0c011624c0728447a27a36f /python/src/sa/rulefactory.pxi
parent01c4ae15be864f503cd12660920b74bc844f88be (diff)
Pass F, E texts to features
Diffstat (limited to 'python/src/sa/rulefactory.pxi')
-rw-r--r--python/src/sa/rulefactory.pxi6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/src/sa/rulefactory.pxi b/python/src/sa/rulefactory.pxi
index a123e85f..ea0805bf 100644
--- a/python/src/sa/rulefactory.pxi
+++ b/python/src/sa/rulefactory.pxi
@@ -19,7 +19,9 @@ FeatureContext = namedtuple('FeatureContext',
'fsample_count',
'input_span',
'matches',
- 'test_sentence'
+ 'test_sentence',
+ 'f_text',
+ 'e_text'
])
cdef int PRECOMPUTE = 0
@@ -1103,7 +1105,7 @@ cdef class HieroCachingRuleFactory:
count = len(locs)
scores = self.scorer.score(FeatureContext(
f, e, count, fcount[f], num_samples,
- (k,i+spanlen), locs, fwords
+ (k,i+spanlen), locs, fwords, self.fda, self.eda
))
yield Rule(self.category, f, e, scores, alignment)