mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* 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."""
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user