summaryrefslogtreecommitdiff
path: root/python/cdec/mteval.pxi
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-06-12 13:56:42 +0200
committerPatrick Simianer <p@simianer.de>2014-06-12 13:56:42 +0200
commit244971287003d079e46193b8a209c28955f90134 (patch)
tree8beaae6b12b913acb213fc7f2415fd63886192f9 /python/cdec/mteval.pxi
parent5250fd67a4b8f242068cff87f0a6a4211f8b0fcf (diff)
parentb66e838ed52decc0be1eb5817b2a77c3840db2c5 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'python/cdec/mteval.pxi')
-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