mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix variable error in Span
This commit is contained in:
parent
e7af6b937f
commit
8c4d1b46ce
|
@ -31,7 +31,7 @@ cdef class Span:
|
|||
Returns:
|
||||
Span The newly constructed object.
|
||||
'''
|
||||
if not (0 <= start <= end <= len(tokens)):
|
||||
if not (0 <= start <= end <= len(doc)):
|
||||
raise IndexError
|
||||
|
||||
self.doc = doc
|
||||
|
|
Loading…
Reference in New Issue
Block a user