Fix Span.noun_chunks. Closes #1207

This commit is contained in:
Matthew Honnibal 2017-07-22 14:14:57 +02:00
parent d9b85675d7
commit 9750a0128c
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ cdef class Span:
# so it's okay once we have the Span objects. See Issue #375 # so it's okay once we have the Span objects. See Issue #375
spans = [] spans = []
for start, end, label in self.doc.noun_chunks_iterator(self): 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: for span in spans:
yield span yield span