mirror of https://github.com/explosion/spaCy.git
* Fix token.conjuncts
This commit is contained in:
parent
2e0104ac81
commit
6e0f985afc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue