mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Update warning message
This commit is contained in:
		
							parent
							
								
									6025cdb992
								
							
						
					
					
						commit
						2edc0aee12
					
				| 
						 | 
					@ -145,7 +145,8 @@ def read_json(location):
 | 
				
			||||||
def resolve_load_name(name, **overrides):
 | 
					def resolve_load_name(name, **overrides):
 | 
				
			||||||
    if overrides.get('path') not in (None, False, True):
 | 
					    if overrides.get('path') not in (None, False, True):
 | 
				
			||||||
        name = overrides.get('path')
 | 
					        name = overrides.get('path')
 | 
				
			||||||
        prints("To load a model from a path, you can now use the first argument.",
 | 
					        prints("To load a model from a path, you can now use the first argument. "
 | 
				
			||||||
 | 
					               "The model meta is used to load the required Language class.",
 | 
				
			||||||
               "OLD: spacy.load('en', path='/some/path')", "NEW: spacy.load('/some/path')",
 | 
					               "OLD: spacy.load('en', path='/some/path')", "NEW: spacy.load('/some/path')",
 | 
				
			||||||
               title="Warning: deprecated argument 'path'")
 | 
					               title="Warning: deprecated argument 'path'")
 | 
				
			||||||
    return name
 | 
					    return name
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user