mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	* Don't allow conjunction between NPs in base NP chunks
This commit is contained in:
		
							parent
							
								
									8b8df851ca
								
							
						
					
					
						commit
						10d869d102
					
				|  | @ -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): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user