From 995b2d18fdc48057160cf2ff91903c97b38a692f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 16 Jan 2016 17:14:34 +0100 Subject: [PATCH] * Route token.string via token.txt_with_ws, to deprecate token.string in future --- spacy/tokens/token.pyx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index 3e056d45a..95515b9c3 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -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):