diff --git a/spacy/language.py b/spacy/language.py index dc2e98414..da02df53d 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -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'