* Fix noun_chunks issue

This commit is contained in:
Matthew Honnibal 2015-07-30 03:51:50 +02:00
parent 9590968fc1
commit 430e2edb96
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ cdef class Doc:
def noun_chunks(self):
"""Yield spans for base noun phrases."""
cdef const TokenC* word
labels = ['nsubj', 'nsubjpass', 'pcomp', 'pobj', 'conj']
labels = ['nsubj', 'dobj', 'nsubjpass', 'pcomp', 'pobj', 'conj']
np_deps = [self.vocab.strings[label] for label in labels]
np_label = self.vocab.strings['NP']
for i in range(self.length):