From 5a5710e7115d24e243f4338bf212ac5e4e215dd8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 13 May 2015 21:53:15 +0200 Subject: [PATCH] * Fix Span.subtree property --- spacy/spans.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/spans.pyx b/spacy/spans.pyx index 50ccf2bfa..6b593e381 100644 --- a/spacy/spans.pyx +++ b/spacy/spans.pyx @@ -88,6 +88,6 @@ cdef class Span: def __get__(self): for word in self.lefts: yield from word.subtree - yield self + yield from self for word in self.rights: yield from word.subtree