mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46: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
|
||||
def text(self):
|
||||
return u' '.join(t.text for t in self)
|
||||
return u''.join(t.text for t in self)
|
||||
|
||||
property ents:
|
||||
def __get__(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user