diff --git a/spacy/tokens/span.pyx b/spacy/tokens/span.pyx index 4056ef615..9759c10a9 100644 --- a/spacy/tokens/span.pyx +++ b/spacy/tokens/span.pyx @@ -370,7 +370,7 @@ cdef class Span: spans = [] cdef attr_t label for start, end, label in self.doc.noun_chunks_iterator(self): - spans.append(Span(self, start, end, label=label)) + spans.append(Span(self.doc, start, end, label=label)) for span in spans: yield span