mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
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 {},
|
||||
}
|
||||
|
||||
path = util.ensure_path(path)
|
||||
self.setup_directory(path, **configs)
|
||||
|
||||
strings_loc = path / 'vocab' / 'strings.json'
|
||||
|
|
Loading…
Reference in New Issue
Block a user