From da9f3581667c37cb2c80dfbf978814ffd080024e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 11 Jul 2015 21:41:41 +0200 Subject: [PATCH] * Fix span getting --- spacy/spans.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/spans.pyx b/spacy/spans.pyx index 052e977f2..5759a8c0b 100644 --- a/spacy/spans.pyx +++ b/spacy/spans.pyx @@ -82,7 +82,7 @@ cdef class Span: head = start while start <= (head + head.head) < end and head.head != 0: head += head.head - return self[head - self._seq.data] + return self._seq[head - self._seq.data] property lefts: """Tokens that are to the left of the Span, whose head is within the Span."""