diff options
author | Chris Dyer <redpony@gmail.com> | 2014-05-25 23:46:52 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-05-25 23:46:52 -0400 |
commit | dc372570c906d1b7d4c856132f8be925fd7ba8b0 (patch) | |
tree | 465a8f8643b3d6e97dea01db5e751f7c3b4b7554 /python | |
parent | 9745950213c0cec36a746da94199b6a782d7632c (diff) | |
parent | c5a835804975357375d446714345e0032e8d15b5 (diff) |
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'python')
-rw-r--r-- | python/cdec/mteval.pxi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/cdec/mteval.pxi b/python/cdec/mteval.pxi index 436a1e01..777ff55a 100644 --- a/python/cdec/mteval.pxi +++ b/python/cdec/mteval.pxi @@ -27,6 +27,9 @@ cdef class SufficientStats: cdef mteval.SufficientStats* stats cdef mteval.EvaluationMetric* metric + def __cinit__(self): + self.stats = new mteval.SufficientStats() + def __dealloc__(self): del self.stats |