mirror of https://github.com/explosion/spaCy.git
Fix Span.noun_chunks. Closes #1207
This commit is contained in:
parent
d9b85675d7
commit
9750a0128c
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue