* Route token.string via token.txt_with_ws, to deprecate token.string in future

This commit is contained in:
Matthew Honnibal 2016-01-16 17:14:34 +01:00
parent 54a98eaf19
commit 995b2d18fd

View File

@ -73,11 +73,7 @@ cdef class Token:
property string:
def __get__(self):
cdef unicode orth = self.vocab.strings[self.c.lex.orth]
if self.c.spacy:
return orth + u' '
else:
return orth
return self.text_with_ws
property text:
def __get__(self):