diff options
author | armatthews <armatthe@cmu.edu> | 2014-05-25 21:26:59 -0400 |
---|---|---|
committer | armatthews <armatthe@cmu.edu> | 2014-05-25 21:26:59 -0400 |
commit | fbb5528a6327cfe9abea34b8bc4188f9166ee4e9 (patch) | |
tree | 30738fbc1af502057c374eac3fcb787778d0d324 | |
parent | 4b3038e575a26172c117f6fd3acf902f8bf83e87 (diff) |
Make sure SufficientStats constructor gets called
-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 |