From 8e022942413f65a7b28ea45fa92ba687db76d1f9 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 30 Oct 2017 18:39:48 +0100 Subject: [PATCH] Add vectors to Language.meta --- spacy/language.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/language.py b/spacy/language.py index 05546cde4..1ce74b265 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -154,6 +154,8 @@ class Language(object): self._meta.setdefault('email', '') self._meta.setdefault('url', '') self._meta.setdefault('license', '') + self._meta['vectors'] = {'width': self.vocab.vectors_length, + 'entries': len(self.vocab.vectors)} self._meta['pipeline'] = self.pipe_names return self._meta