diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index 8747cab8a..5c0841f54 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -379,6 +379,8 @@ cdef class Token: property string: def __get__(self): + if (self.i+1) == self._seq.length: + return self._string[self.c.idx:] cdef int next_idx = (self.c + 1).idx if next_idx < self.c.idx: next_idx = self.c.idx + self.c.lex.length