diff --git a/spacy/gold.pxd b/spacy/gold.pxd index bf587c82a..0a689ac62 100644 --- a/spacy/gold.pxd +++ b/spacy/gold.pxd @@ -12,7 +12,7 @@ cdef struct GoldParseC: int* sent_start attr_t* labels int** brackets - int* fused_tokens + int* fused Transition* ner diff --git a/spacy/gold.pyx b/spacy/gold.pyx index 45eaa67cf..46f16a229 100644 --- a/spacy/gold.pyx +++ b/spacy/gold.pyx @@ -442,6 +442,7 @@ cdef class GoldParse: self.c.has_dep = self.mem.alloc(len(doc), sizeof(int)) self.c.sent_start = self.mem.alloc(len(doc), sizeof(int)) self.c.ner = self.mem.alloc(len(doc), sizeof(Transition)) + self.c.fused = self.mem.alloc(len(doc), sizeof(int)) self.cats = {} if cats is None else dict(cats) self.words = [None] * len(doc)