From a5c6869b2d25cbabd64e9c0f254b143d0d7d84bb Mon Sep 17 00:00:00 2001 From: Burton DeWilde Date: Mon, 20 Nov 2017 12:04:06 -0600 Subject: [PATCH] Fix bug where span.orth_ != span.text (see #1612) --- spacy/tokens/span.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/span.pyx b/spacy/tokens/span.pyx index 9759c10a9..f09dfd134 100644 --- a/spacy/tokens/span.pyx +++ b/spacy/tokens/span.pyx @@ -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."""