mirror of https://github.com/explosion/spaCy.git
Fix data typing in align
This commit is contained in:
parent
7a5ba20692
commit
24563f4026
|
@ -109,7 +109,7 @@ def align(S, T):
|
|||
def _convert_sequence(seq):
|
||||
if isinstance(seq, numpy.ndarray):
|
||||
return numpy.ascontiguousarray(seq, dtype='uint32_t')
|
||||
cdef np.ndarray output = numpy.zeros((len(seq),), dtype='uint32_t')
|
||||
cdef np.ndarray output = numpy.zeros((len(seq),), dtype='uint32')
|
||||
cdef bytes item_bytes
|
||||
for i, item in enumerate(seq):
|
||||
if isinstance(item, unicode):
|
||||
|
|
Loading…
Reference in New Issue