Make GoldParse attributes writeable

This commit is contained in:
Matthew Honnibal 2017-05-22 04:50:29 -05:00
parent 2a5eb9f61e
commit 93a042253b

View File

@ -18,15 +18,15 @@ cdef class GoldParse:
cdef GoldParseC c
cdef int length
cdef readonly int loss
cdef readonly list words
cdef readonly list tags
cdef readonly list heads
cdef readonly list labels
cdef readonly dict orths
cdef readonly list ner
cdef readonly list ents
cdef readonly dict brackets
cdef public int loss
cdef public list words
cdef public list tags
cdef public list heads
cdef public list labels
cdef public dict orths
cdef public list ner
cdef public list ents
cdef public dict brackets
cdef readonly list cand_to_gold
cdef readonly list gold_to_cand