Fix variable error in Span

This commit is contained in:
Matthew Honnibal 2016-11-01 13:27:44 +01:00
parent e7af6b937f
commit 8c4d1b46ce

View File

@ -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