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