mirror of https://github.com/explosion/spaCy.git
Fix return value of Vocab.from_bytes
This commit is contained in:
parent
9692c98f57
commit
023f38bdd4
|
@ -329,7 +329,8 @@ cdef class Vocab:
|
||||||
('strings', lambda b: self.strings.from_bytes(b)),
|
('strings', lambda b: self.strings.from_bytes(b)),
|
||||||
('lexemes', lambda b: self.lexemes_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):
|
def lexemes_to_bytes(self):
|
||||||
cdef hash_t key
|
cdef hash_t key
|
||||||
|
|
Loading…
Reference in New Issue