mirror of https://github.com/explosion/spaCy.git
Ensure path in save_to_directory
This commit is contained in:
parent
01067e99d4
commit
e2299dc389
|
@ -350,6 +350,7 @@ class Language(object):
|
||||||
'ner': self.entity.cfg if self.entity else {},
|
'ner': self.entity.cfg if self.entity else {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
path = util.ensure_path(path)
|
||||||
self.setup_directory(path, **configs)
|
self.setup_directory(path, **configs)
|
||||||
|
|
||||||
strings_loc = path / 'vocab' / 'strings.json'
|
strings_loc = path / 'vocab' / 'strings.json'
|
||||||
|
|
Loading…
Reference in New Issue