* Fix bug in Doc.text, introduced by a862edc

This commit is contained in:
Matthew Honnibal 2016-05-04 11:02:16 +02:00
parent 24337175df
commit 76021cb853

View File

@ -161,15 +161,15 @@ cdef class Doc:
@property @property
def string(self): def string(self):
return self.text_with_ws return self.text
@property @property
def text_with_ws(self): def text_with_ws(self):
return u''.join([t.text_with_ws for t in self]) return self.text
@property @property
def text(self): 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: property ents:
def __get__(self): def __get__(self):