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:
ines 2017-03-16 17:14:56 +01:00
parent e348d4434c
commit 618ce3b425

View File

@ -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) \