diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index 8795d6c63..870bbe4c9 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -102,7 +102,7 @@ cdef class Tokens: token (Token): """ if i < 0: - i = self.length - i + i = self.length + i bounds_check(i, self.length, PADDING) return Token.cinit(self.vocab, self._string, &self.data[i], i, self.length,