mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 01:32:32 +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 {},
|
'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
Block a user