summaryrefslogtreecommitdiff
path: root/python/src/sa/features.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/sa/features.pxi')
-rw-r--r--python/src/sa/features.pxi5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/src/sa/features.pxi b/python/src/sa/features.pxi
index fcb93f26..eeef4feb 100644
--- a/python/src/sa/features.pxi
+++ b/python/src/sa/features.pxi
@@ -26,9 +26,8 @@ cdef class Scorer:
names = [FD.index(<char *>model.__name__) for model in models]
self.models = zip(names, models)
- cdef FeatureVector score(self, Phrase fphrase, Phrase ephrase,
- unsigned paircount, unsigned fcount, unsigned fsample_count):
+ cdef FeatureVector score(self, c):
cdef FeatureVector scores = FeatureVector()
for name, model in self.models:
- scores.set(name, model(fphrase, ephrase, paircount, fcount, fsample_count))
+ scores.set(name, model(c.fphrase, c.ephrase, c.paircount, c.fcount, c.fsample_count))
return scores