* Fix token.conjuncts

This commit is contained in:
Matthew Honnibal 2015-10-15 03:49:45 +11:00
parent 2e0104ac81
commit 6e0f985afc

View File

@ -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