mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	* Fix assignment of dep strings in tokens.pyx
This commit is contained in:
		
							parent
							
								
									6b6bce9e7a
								
							
						
					
					
						commit
						6865c2fb4d
					
				| 
						 | 
					@ -239,7 +239,7 @@ cdef class Tokens:
 | 
				
			||||||
        for i in range(self.length):
 | 
					        for i in range(self.length):
 | 
				
			||||||
            self.data[i] = parsed[i]
 | 
					            self.data[i] = parsed[i]
 | 
				
			||||||
        dep_strings = [None] * len(label_ids)
 | 
					        dep_strings = [None] * len(label_ids)
 | 
				
			||||||
        for id_, dep_string in label_ids.items():
 | 
					        for dep_string, id_ in label_ids.items():
 | 
				
			||||||
            dep_strings[id_] = dep_string
 | 
					            dep_strings[id_] = dep_string
 | 
				
			||||||
        self._dep_strings = tuple(dep_strings)
 | 
					        self._dep_strings = tuple(dep_strings)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user