mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
* Use decode_int32 in _orth_decode
This commit is contained in:
parent
9cfa59ec33
commit
304d0e2633
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user