mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +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
|
@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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user