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