summaryrefslogtreecommitdiff
path: root/python/src/sa/features.pxi
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-05 10:21:37 +0100
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-09-05 10:21:37 +0100
commit1fd5b40da3bc9c55fd2fba03bb7fdb43eabee63c (patch)
tree14dbe83539aa2cd244b6ec9191d570d750131c7c /python/src/sa/features.pxi
parentb774a1ce6aced0e17d308d775cb32ba18ab755a8 (diff)
Merge alopez/context-features
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