From c05cd2356e4f193c4bd2703bd1a31476e98321d1 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 23 Oct 2016 18:16:56 +0200 Subject: [PATCH] Fix similarity test for Python 3 --- spacy/tests/vectors/test_similarity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):