From ad119c074fa6eb5c89f3eb4118fd630e5505b45c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 29 Mar 2016 13:02:42 +1100 Subject: [PATCH] * Fix incorrect whitespacing in Doc.text. This change is potentially breaking, to anyone who was relying on the previous incorrect semantics. --- spacy/tokens/doc.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 26088be0c..c5111088f 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -166,7 +166,7 @@ cdef class Doc: @property def text(self): - return u' '.join(t.text for t in self) + return u''.join(t.text for t in self) property ents: def __get__(self):