mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	* Fix function that returns nth entity in StateClass. Was only returning the first.
This commit is contained in:
		
							parent
							
								
									410b6f9ec1
								
							
						
					
					
						commit
						b65633f270
					
				| 
						 | 
					@ -48,7 +48,7 @@ cdef class StateClass:
 | 
				
			||||||
            return 0
 | 
					            return 0
 | 
				
			||||||
        if i < 0 or i >= self.length:
 | 
					        if i < 0 or i >= self.length:
 | 
				
			||||||
            return 0
 | 
					            return 0
 | 
				
			||||||
        return self._ents[self._e_i-1].start
 | 
					         self._ents[self._e_i - (i+1)].start
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cdef int L(self, int i, int idx) nogil:
 | 
					    cdef int L(self, int i, int idx) nogil:
 | 
				
			||||||
        if idx < 1:
 | 
					        if idx < 1:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user