mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Implement Example.copy
This commit is contained in:
		
							parent
							
								
									c2fff89b1d
								
							
						
					
					
						commit
						0d2492c97a
					
				|  | @ -55,6 +55,12 @@ cdef class Example: | |||
|         def __set__(self, doc): | ||||
|             self.y = doc | ||||
| 
 | ||||
|     def copy(self): | ||||
|         return Example( | ||||
|             self.x.copy(), | ||||
|             self.y.copy() | ||||
|         ) | ||||
|   | ||||
|     @classmethod | ||||
|     def from_dict(cls, Doc predicted, dict example_dict): | ||||
|         if example_dict is None: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user