From 6e0f985afc4cef65386f8c7a193dde9c510ad8f2 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 15 Oct 2015 03:49:45 +1100 Subject: [PATCH] * Fix token.conjuncts --- spacy/tokens/token.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index 1f672ee35..dc2abbb25 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -251,7 +251,7 @@ cdef class Token: """Get a list of conjoined words.""" cdef Token word conjuncts = [] - if self.c.pos != CONJ and self.c.pos != PUNCT: + if self.dep_ != 'conj': for word in self.rights: if word.dep_ == 'conj': yield word