diff --git a/spacy/syntax/_state.pxd b/spacy/syntax/_state.pxd index c06851978..9aeeba441 100644 --- a/spacy/syntax/_state.pxd +++ b/spacy/syntax/_state.pxd @@ -37,6 +37,7 @@ cdef cppclass StateC: this.shifted = calloc(length + (PADDING * 2), sizeof(bint)) this._sent = calloc(length + (PADDING * 2), sizeof(TokenC)) this._ents = calloc(length + (PADDING * 2), sizeof(Entity)) + this.offset = 0 cdef int i for i in range(length + (PADDING * 2)): this._ents[i].end = -1