Fix bug where span.orth_ != span.text (see #1612)

This commit is contained in:
Burton DeWilde 2017-11-20 12:04:06 -06:00
parent 635792997c
commit a5c6869b2d

View File

@ -527,7 +527,7 @@ cdef class Span:
RETURNS (unicode): The span's text.""" RETURNS (unicode): The span's text."""
def __get__(self): def __get__(self):
return ''.join([t.orth_ for t in self]).strip() return self.text
property lemma_: property lemma_:
"""RETURNS (unicode): The span's lemma.""" """RETURNS (unicode): The span's lemma."""