* Fix token.conjuncts

This commit is contained in:
Matthew Honnibal 2015-10-15 03:49:45 +11:00
parent 2e0104ac81
commit 6e0f985afc
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ cdef class Token:
"""Get a list of conjoined words.""" """Get a list of conjoined words."""
cdef Token word cdef Token word
conjuncts = [] conjuncts = []
if self.c.pos != CONJ and self.c.pos != PUNCT: if self.dep_ != 'conj':
for word in self.rights: for word in self.rights:
if word.dep_ == 'conj': if word.dep_ == 'conj':
yield word yield word