diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 22096d4ed..a3ae45733 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -158,7 +158,7 @@ cdef class Doc: def noun_chunks(self): """Yield spans for base noun phrases.""" cdef const TokenC* word - labels = ['nsubj', 'dobj', 'nsubjpass', 'pcomp', 'pobj', 'conj'] + labels = ['nsubj', 'dobj', 'nsubjpass', 'pcomp', 'pobj', 'conj', 'attr'] np_deps = [self.vocab.strings[label] for label in labels] np_label = self.vocab.strings['NP'] for i in range(self.length):