From 66928338877ed60676f0e9d58b878fea98ad435b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 3 Jul 2018 23:24:11 +0200 Subject: [PATCH] Fix init_model --- spacy/cli/init_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/init_model.py b/spacy/cli/init_model.py index 17a99f2e2..3de17e70f 100644 --- a/spacy/cli/init_model.py +++ b/spacy/cli/init_model.py @@ -132,7 +132,7 @@ def create_model(lang, lex_attrs, vectors_data, vector_keys, prune_vectors): lexeme = nlp.vocab[word] lexeme.is_oov = False lex_added += 1 - if vectors_data: + if vectors_data is not None: nlp.vocab.vectors = Vectors(data=vectors_data, keys=vector_keys) if prune_vectors >= 1: nlp.vocab.prune_vectors(prune_vectors)