Fix data typing in align

This commit is contained in:
Matthew Honnibal 2018-02-23 15:08:06 +01:00
parent 7a5ba20692
commit 24563f4026
1 changed files with 1 additions and 1 deletions

View File

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