mirror of https://github.com/explosion/spaCy.git
* Fix span getting
This commit is contained in:
parent
11e8f2ffb4
commit
da9f358166
|
@ -82,7 +82,7 @@ cdef class Span:
|
|||
head = start
|
||||
while start <= (head + head.head) < end and head.head != 0:
|
||||
head += head.head
|
||||
return self[head - self._seq.data]
|
||||
return self._seq[head - self._seq.data]
|
||||
|
||||
property lefts:
|
||||
"""Tokens that are to the left of the Span, whose head is within the Span."""
|
||||
|
|
Loading…
Reference in New Issue