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):