mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Fix bug where span.orth_ != span.text (see #1612)
This commit is contained in:
parent
635792997c
commit
a5c6869b2d
|
@ -527,7 +527,7 @@ cdef class Span:
|
|||
|
||||
RETURNS (unicode): The span's text."""
|
||||
def __get__(self):
|
||||
return ''.join([t.orth_ for t in self]).strip()
|
||||
return self.text
|
||||
|
||||
property lemma_:
|
||||
"""RETURNS (unicode): The span's lemma."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user