mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Create directory if missing in save_to_directory
This commit is contained in:
parent
e033c86a64
commit
d0e19267e8
|
@ -366,6 +366,8 @@ class Language(object):
|
|||
}
|
||||
|
||||
path = util.ensure_path(path)
|
||||
if not path.exists():
|
||||
path.mkdir()
|
||||
self.setup_directory(path, **configs)
|
||||
|
||||
strings_loc = path / 'vocab' / 'strings.json'
|
||||
|
|
Loading…
Reference in New Issue
Block a user