mirror of https://github.com/explosion/spaCy.git
* Fix Span.subtree property
This commit is contained in:
parent
badf030b6c
commit
5a5710e711
|
@ -88,6 +88,6 @@ cdef class Span:
|
|||
def __get__(self):
|
||||
for word in self.lefts:
|
||||
yield from word.subtree
|
||||
yield self
|
||||
yield from self
|
||||
for word in self.rights:
|
||||
yield from word.subtree
|
||||
|
|
Loading…
Reference in New Issue