Add vectors to Language.meta

This commit is contained in:
ines 2017-10-30 18:39:48 +01:00
parent abf8aa05d3
commit 8e02294241

View File

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