diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index 571a37da9..bac55e320 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -199,8 +199,9 @@ cdef class Vocab: cdef hash_t key for key, addr in self._by_hash.items(): lexeme = addr + fp.write_from(&lexeme.orth, sizeof(lexeme.orth), 1) fp.write_from(&lexeme.flags, sizeof(lexeme.flags), 1) - fp.write_from(&lexeme.id, sizeof(lexeme.flags), 1) + fp.write_from(&lexeme.id, sizeof(lexeme.id), 1) fp.write_from(&lexeme.length, sizeof(lexeme.length), 1) fp.write_from(&lexeme.orth, sizeof(lexeme.orth), 1) fp.write_from(&lexeme.lower, sizeof(lexeme.lower), 1)