mirror of https://github.com/explosion/spaCy.git
Fix Language.from_disk overwrites the meta.json file.
This commit is contained in:
parent
485c4f6df5
commit
8f5b60c168
|
@ -585,7 +585,7 @@ class Language(object):
|
|||
deserializers = OrderedDict((
|
||||
('vocab', lambda p: self.vocab.from_disk(p)),
|
||||
('tokenizer', lambda p: self.tokenizer.from_disk(p, vocab=False)),
|
||||
('meta.json', lambda p: p.open('w').write(json_dumps(self.meta)))
|
||||
('meta.json', lambda p: self.meta.update(ujson.load(p.open('r'))))
|
||||
))
|
||||
for name, proc in self.pipeline:
|
||||
if name in disable:
|
||||
|
|
Loading…
Reference in New Issue