mirror of https://github.com/explosion/spaCy.git
Return False for vocab.has_vector
This commit is contained in:
parent
675f448313
commit
add9a33782
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue