mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Add vectors to Language.meta
This commit is contained in:
parent
abf8aa05d3
commit
8e02294241
|
@ -154,6 +154,8 @@ class Language(object):
|
||||||
self._meta.setdefault('email', '')
|
self._meta.setdefault('email', '')
|
||||||
self._meta.setdefault('url', '')
|
self._meta.setdefault('url', '')
|
||||||
self._meta.setdefault('license', '')
|
self._meta.setdefault('license', '')
|
||||||
|
self._meta['vectors'] = {'width': self.vocab.vectors_length,
|
||||||
|
'entries': len(self.vocab.vectors)}
|
||||||
self._meta['pipeline'] = self.pipe_names
|
self._meta['pipeline'] = self.pipe_names
|
||||||
return self._meta
|
return self._meta
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user