From 76cd02409535b9614504a647f76857e1020d6307 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 24 Jan 2015 07:41:21 +1100 Subject: [PATCH] * Add whitespace property to Token --- spacy/tokens.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index dbc76ba71..b434ee854 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -256,8 +256,7 @@ cdef class Token: property whitespace: def __get__(self): - cdef int end_idx = self.idx + self.length - + return self.string[self.length:] property orth_: def __get__(self):