From add9a33782888d8adc8c577c27c275f720641b08 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 4 Jun 2017 14:26:14 -0500 Subject: [PATCH] Return False for vocab.has_vector --- spacy/vocab.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index 6655925e4..149317779 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -278,7 +278,7 @@ cdef class Vocab: """Check whether a word has a vector. Returns False if no vectors have been loaded. Words can be looked up by string or int ID.""" - raise NotImplementedError + return False def to_disk(self, path): """Save the current state to a directory.