From f7dd377575d4a68d7e2d83dcc10b4a9ff25b465b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 3 Nov 2015 13:23:22 +1100 Subject: [PATCH] * Adjust conjuncts iterator in Token --- spacy/tokens/token.pyx | 3 --- 1 file changed, 3 deletions(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index cce8eeeb4..92a32b8a2 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -253,14 +253,11 @@ cdef class Token: def __get__(self): """Get a list of conjoined words.""" cdef Token word - conjuncts = [] if self.dep_ != 'conj': for word in self.rights: if word.dep_ == 'conj': yield word yield from word.conjuncts - conjuncts.append(word) - conjuncts.extend(word.conjuncts) property ent_type: def __get__(self):