mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Fix deserialization bug
This commit is contained in:
		
							parent
							
								
									bfddf50081
								
							
						
					
					
						commit
						382ce566eb
					
				| 
						 | 
					@ -142,7 +142,7 @@ class BaseThincComponent(object):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        deserialize = OrderedDict((
 | 
					        deserialize = OrderedDict((
 | 
				
			||||||
            ('cfg', lambda b: self.cfg.update(ujson.loads(b))),
 | 
					            ('cfg', lambda b: self.cfg.update(ujson.loads(b))),
 | 
				
			||||||
            ('model', lambda b: self.model.from_bytes(b)),
 | 
					            ('model', load_model),
 | 
				
			||||||
            ('vocab', lambda b: self.vocab.from_bytes(b))
 | 
					            ('vocab', lambda b: self.vocab.from_bytes(b))
 | 
				
			||||||
        ))
 | 
					        ))
 | 
				
			||||||
        util.from_bytes(bytes_data, deserialize, exclude)
 | 
					        util.from_bytes(bytes_data, deserialize, exclude)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user