summaryrefslogtreecommitdiff
path: root/python/src/mteval.pxi
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-07-28 12:11:44 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-07-28 12:11:44 -0400
commit306e0ba4754c6c4f460536cfe8c3f118dc1cc175 (patch)
treead5ea3b0a5370ac613d1bad715fe0f5ab8c91c11 /python/src/mteval.pxi
parent934e55dc12c3f374684bc6a0797e6f85c7abb85a (diff)
parentee5e376e263d9aeabdeee6968b4457f53d3fc772 (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/src/mteval.pxi')
-rw-r--r--python/src/mteval.pxi4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/mteval.pxi b/python/src/mteval.pxi
index 52d2abc6..cd1c3c81 100644
--- a/python/src/mteval.pxi
+++ b/python/src/mteval.pxi
@@ -10,7 +10,7 @@ cdef SufficientStats as_stats(x, y):
return stats
cdef class Candidate:
- cdef mteval.Candidate* candidate
+ cdef mteval.const_Candidate* candidate
cdef public float score
property words:
@@ -19,7 +19,7 @@ cdef class Candidate:
property fmap:
def __get__(self):
- cdef SparseVector fmap = SparseVector()
+ cdef SparseVector fmap = SparseVector.__new__(SparseVector)
fmap.vector = new FastSparseVector[weight_t](self.candidate.fmap)
return fmap