mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	Only try to load vectors if they exist.
This commit is contained in:
		
							parent
							
								
									618ac36093
								
							
						
					
					
						commit
						60eb2343ce
					
				|  | @ -57,7 +57,8 @@ class BaseDefaults(object): | |||
|             return False | ||||
|         else: | ||||
|             vec_path = nlp.path / 'vocab' / 'vec.bin' | ||||
|             return lambda vocab: vocab.load_vectors_from_bin_loc(vec_path) | ||||
|             if vec_path.exists(): | ||||
|                 return lambda vocab: vocab.load_vectors_from_bin_loc(vec_path) | ||||
| 
 | ||||
|     @classmethod | ||||
|     def create_tokenizer(cls, nlp=None): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user