summaryrefslogtreecommitdiff
path: root/python/src/sa/rulefactory.pxi
diff options
context:
space:
mode:
authorAdam Lopez <alopez@cs.jhu.edu>2012-09-05 12:23:06 -0400
committerAdam Lopez <alopez@cs.jhu.edu>2012-09-05 12:23:06 -0400
commit01c4ae15be864f503cd12660920b74bc844f88be (patch)
tree7f9dd42813168ab5035d5f29ab45022b45b0265c /python/src/sa/rulefactory.pxi
parentc6b35eff2537f0b07ceb9aca499e8f76b3d33710 (diff)
Change FeatureContext.input_span to return slice indices
Diffstat (limited to 'python/src/sa/rulefactory.pxi')
-rw-r--r--python/src/sa/rulefactory.pxi2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/src/sa/rulefactory.pxi b/python/src/sa/rulefactory.pxi
index 54471ccd..a123e85f 100644
--- a/python/src/sa/rulefactory.pxi
+++ b/python/src/sa/rulefactory.pxi
@@ -1103,7 +1103,7 @@ cdef class HieroCachingRuleFactory:
count = len(locs)
scores = self.scorer.score(FeatureContext(
f, e, count, fcount[f], num_samples,
- (k,i), locs, fwords
+ (k,i+spanlen), locs, fwords
))
yield Rule(self.category, f, e, scores, alignment)