summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorarmatthews <armatthe@cmu.edu>2014-05-25 21:26:59 -0400
committerarmatthews <armatthe@cmu.edu>2014-05-25 21:26:59 -0400
commit3b65b6960a84e55a042be7e0460d419717a0f5e5 (patch)
treeecde692fd6952ce0da1f3d22e3899a71c6354055 /python
parent8113ff19e6482773dce91376a10818010929d74d (diff)
Make sure SufficientStats constructor gets called
Diffstat (limited to 'python')
-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