From 10d869d10271146a393c5ebc8e2db7ceffcb4a8a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 6 Aug 2015 16:31:53 +0200 Subject: [PATCH] * Don't allow conjunction between NPs in base NP chunks --- spacy/tokens/doc.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 6d0cd9a8b..74df27f07 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -185,7 +185,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', 'attr'] + labels = ['nsubj', 'dobj', 'nsubjpass', 'pcomp', 'pobj', 'attr'] np_deps = [self.vocab.strings[label] for label in labels] np_label = self.vocab.strings['NP'] for i in range(self.length):