From 9839cd2c0be61b0501f55dfa8720021f76a67a74 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 18 Oct 2015 17:21:11 +1100 Subject: [PATCH] * Fix whitespace_ calculation in Token --- spacy/tokens/token.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index dc2abbb25..a7447fb79 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -278,7 +278,7 @@ cdef class Token: property whitespace_: def __get__(self): - return self.string[self.c.lex.length:] + return ' ' if self.c.spacy else '' property orth_: def __get__(self):