mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
* Fix incorrect whitespacing in Doc.text. This change is potentially breaking, to anyone who was relying on the previous incorrect semantics.
This commit is contained in:
parent
a862edc0e6
commit
ad119c074f
|
@ -166,7 +166,7 @@ cdef class Doc:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def text(self):
|
def text(self):
|
||||||
return u' '.join(t.text for t in self)
|
return u''.join(t.text for t in self)
|
||||||
|
|
||||||
property ents:
|
property ents:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user