* Use decode_int32 in _orth_decode

This commit is contained in:
Matthew Honnibal 2015-07-21 20:40:55 +02:00
parent 9cfa59ec33
commit 304d0e2633

View File

@ -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