Fix return value of Vocab.from_bytes

This commit is contained in:
ines 2017-06-02 10:56:40 +02:00
parent 9692c98f57
commit 023f38bdd4

View File

@ -329,7 +329,8 @@ cdef class Vocab:
('strings', lambda b: self.strings.from_bytes(b)),
('lexemes', lambda b: self.lexemes_from_bytes(b)),
))
return util.from_bytes(bytes_data, setters, exclude)
util.from_bytes(bytes_data, setters, exclude)
return self
def lexemes_to_bytes(self):
cdef hash_t key