From 1fd5b40da3bc9c55fd2fba03bb7fdb43eabee63c Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Wed, 5 Sep 2012 10:21:37 +0100 Subject: Merge alopez/context-features --- python/src/sa/features.pxi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'python/src/sa/features.pxi') 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(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 -- cgit v1.2.3