summaryrefslogtreecommitdiff
path: root/python/src/sa/rulefactory.pxi
diff options
context:
space:
mode:
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)