From 24563f40266eef668322d74ac0002ced33cbc73c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 23 Feb 2018 15:08:06 +0100 Subject: [PATCH] Fix data typing in align --- spacy/_align.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/_align.pyx b/spacy/_align.pyx index 8b0c8482f..daab20420 100644 --- a/spacy/_align.pyx +++ b/spacy/_align.pyx @@ -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):