From 76021cb853fe53e1dc79ddf3758d21c97d9be0cf Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 4 May 2016 11:02:16 +0200 Subject: [PATCH] * Fix bug in Doc.text, introduced by a862edc --- spacy/tokens/doc.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 9f68304d8..c964d294b 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -161,15 +161,15 @@ cdef class Doc: @property def string(self): - return self.text_with_ws + return self.text @property def text_with_ws(self): - return u''.join([t.text_with_ws for t in self]) + return self.text @property def text(self): - return u''.join(t.text for t in self) + return u''.join(t.text_with_ws for t in self) property ents: def __get__(self):