mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Add .meta to Language object
Allows getting the current model's meta data, e.g.: nlp = spacy.load('my-model') print(nlp.meta)
This commit is contained in:
parent
e348d4434c
commit
618ce3b425
|
@ -276,6 +276,7 @@ class Language(object):
|
|||
if path is True:
|
||||
path = util.match_best_version(self.lang, '', util.get_data_path())
|
||||
|
||||
self.meta = overrides.get('meta', {})
|
||||
self.path = path
|
||||
|
||||
self.vocab = self.Defaults.create_vocab(self) \
|
||||
|
|
Loading…
Reference in New Issue
Block a user