From e2299dc389bbf84ee1bd56edc23202ec5f9249e2 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 17 Apr 2017 01:40:14 +0200 Subject: [PATCH] Ensure path in save_to_directory --- spacy/language.py | 1 + 1 file changed, 1 insertion(+) 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'