diff --git a/spacy/language.py b/spacy/language.py index f47b1d0cc..b356f4d8c 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -350,6 +350,7 @@ class Language(object): 'ner': self.entity.cfg if self.entity else {}, } + path = util.ensure_path(path) self.setup_directory(path, **configs) strings_loc = path / 'vocab' / 'strings.json'