summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-05-25 23:46:52 -0400
committerChris Dyer <redpony@gmail.com>2014-05-25 23:46:52 -0400
commit83ed21822dc65004097ab1049fb28c518b90506c (patch)
treed03b893af59227d53e04059510646941a661bf40
parent75c05abc3adf51a8ee05fe0a92536ac89e3be7d1 (diff)
parent1d1ab1826920c6bab22cc27f6d74645f0777f63a (diff)
Merge branch 'master' of https://github.com/redpony/cdec
-rw-r--r--python/cdec/mteval.pxi3
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