mirror of https://github.com/explosion/spaCy.git
Merge pull request #1428 from roanuz/develop
Fix trailing whitespace and Language.from_disk overwrites
This commit is contained in:
commit
afa67de7ee
|
@ -594,7 +594,7 @@ class Language(object):
|
||||||
deserializers = OrderedDict((
|
deserializers = OrderedDict((
|
||||||
('vocab', lambda p: self.vocab.from_disk(p)),
|
('vocab', lambda p: self.vocab.from_disk(p)),
|
||||||
('tokenizer', lambda p: self.tokenizer.from_disk(p, vocab=False)),
|
('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:
|
for name, proc in self.pipeline:
|
||||||
if name in disable:
|
if name in disable:
|
||||||
|
|
Loading…
Reference in New Issue