mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
* Don't consider a coordinated NP a base chunk
This commit is contained in:
parent
d9f1fc2112
commit
07686470a9
|
@ -186,7 +186,7 @@ cdef class Doc:
|
|||
def noun_chunks(self):
|
||||
"""Yield spans for base noun phrases."""
|
||||
cdef const TokenC* word
|
||||
labels = ['nsubj', 'dobj', 'nsubjpass', 'pcomp', 'pobj', 'attr']
|
||||
labels = ['nsubj', 'dobj', 'nsubjpass', 'pcomp', 'pobj', 'attr', 'conj']
|
||||
np_deps = [self.vocab.strings[label] for label in labels]
|
||||
np_label = self.vocab.strings['NP']
|
||||
for i in range(self.length):
|
||||
|
|
Loading…
Reference in New Issue
Block a user