mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	* Fix matcher setting of entities
This commit is contained in:
		
							parent
							
								
									91a94e152b
								
							
						
					
					
						commit
						383dfabd67
					
				| 
						 | 
					@ -154,5 +154,5 @@ cdef class Matcher:
 | 
				
			||||||
                        matches.append(get_entity(state, token, token_i))
 | 
					                        matches.append(get_entity(state, token, token_i))
 | 
				
			||||||
                    else:
 | 
					                    else:
 | 
				
			||||||
                        partials.push_back(state + 1)
 | 
					                        partials.push_back(state + 1)
 | 
				
			||||||
        doc.ents = list(sorted(list(doc.ents) + matches))
 | 
					        doc.ents = [(e.label, e.start, e.end) for e in doc.ents] + matches
 | 
				
			||||||
        return matches
 | 
					        return matches
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user