Create directory if missing in save_to_directory

This commit is contained in:
Matthew Honnibal 2017-04-23 21:24:43 +02:00
parent e033c86a64
commit d0e19267e8

View File

@ -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'