Return False for vocab.has_vector

This commit is contained in:
Matthew Honnibal 2017-06-04 14:26:14 -05:00
parent 675f448313
commit add9a33782
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ cdef class Vocab:
"""Check whether a word has a vector. Returns False if no """Check whether a word has a vector. Returns False if no
vectors have been loaded. Words can be looked up by string vectors have been loaded. Words can be looked up by string
or int ID.""" or int ID."""
raise NotImplementedError return False
def to_disk(self, path): def to_disk(self, path):
"""Save the current state to a directory. """Save the current state to a directory.