mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Set missing label for non-specified entities when setting doc.ents
This commit is contained in:
		
							parent
							
								
									54d7a1c916
								
							
						
					
					
						commit
						514d89a3ae
					
				|  | @ -465,7 +465,7 @@ cdef class Doc: | |||
|             cdef int i | ||||
|             for i in range(self.length): | ||||
|                 self.c[i].ent_type = 0 | ||||
|                 self.c[i].ent_iob = 2  # Means O. Non-O are set from ents. | ||||
|                 self.c[i].ent_iob = 0  # Means missing. | ||||
|             cdef attr_t ent_type | ||||
|             cdef int start, end | ||||
|             for ent_info in ents: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user