mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
* Fix regression in packer
This commit is contained in:
parent
174ed1ad20
commit
25a8774f42
|
@ -152,7 +152,7 @@ cdef class Packer:
|
||||||
cdef int32_t length = len(utf8_str)
|
cdef int32_t length = len(utf8_str)
|
||||||
# Signal chars with negative length
|
# Signal chars with negative length
|
||||||
bits.extend(-length, 32)
|
bits.extend(-length, 32)
|
||||||
self.char_codec.encode(utf8_str, bits)
|
self.char_codec.encode(bytearray(utf8_str), bits)
|
||||||
cdef int i, j
|
cdef int i, j
|
||||||
for i in range(doc.length):
|
for i in range(doc.length):
|
||||||
for j in range(doc.data[i].lex.length-1):
|
for j in range(doc.data[i].lex.length-1):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user