mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
* Fix bug in Doc.text, introduced by a862edc
This commit is contained in:
parent
24337175df
commit
76021cb853
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user