mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Fix json dump for Python3
This commit is contained in:
parent
040751ad17
commit
4d2a659c52
|
@ -195,7 +195,7 @@ class Language(object):
|
|||
if directory.exists():
|
||||
shutil.rmtree(str(directory))
|
||||
directory.mkdir()
|
||||
with (directory / 'config.json').open('wb') as file_:
|
||||
with (directory / 'config.json').open('w') as file_:
|
||||
data = json_dumps(config)
|
||||
file_.write(data)
|
||||
if not (path / 'vocab').exists():
|
||||
|
|
Loading…
Reference in New Issue
Block a user