diff --git a/spacy/serialize/packer.pyx b/spacy/serialize/packer.pyx index 2a6ed1aed..36fe5cf2c 100644 --- a/spacy/serialize/packer.pyx +++ b/spacy/serialize/packer.pyx @@ -146,7 +146,7 @@ cdef class Packer: def _orth_decode(self, BitArray bits, n): orths = numpy.ndarray(shape=(n,), dtype=numpy.int32) - self.orth_codec.decode(bits, orths) + self.orth_codec.decode_int32(bits, orths) orths_and_spaces = zip(orths, bits) cdef Doc doc = Doc(self.vocab, orths_and_spaces) return doc