diff --git a/spacy/tests/vectors/test_similarity.py b/spacy/tests/vectors/test_similarity.py index d5c6a9942..74d0b5969 100644 --- a/spacy/tests/vectors/test_similarity.py +++ b/spacy/tests/vectors/test_similarity.py @@ -9,7 +9,7 @@ import pytest def get_vector(letters): - return numpy.asarray(map(ord, letters), dtype='float32') + return numpy.asarray([ord(letter) for letter in letters], dtype='float32') def get_cosine(vec1, vec2):