From 883ff1f59e32f4d3a54bf153b16b6529d0904412 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 13 Oct 2015 15:58:46 +1100 Subject: [PATCH] * Fix test --- tests/website/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/website/test_api.py b/tests/website/test_api.py index 24302542b..6eb1d1a03 100644 --- a/tests/website/test_api.py +++ b/tests/website/test_api.py @@ -67,8 +67,8 @@ def test_count_by(nlp): from spacy import attrs tokens = nlp('apple apple orange banana') assert tokens.count_by(attrs.ORTH) == {3699: 2, 3750: 1, 5965: 1} - assert repr(tokens.to_array([attrs.ORTH])) == repr(numpy.array([[2529], - [2529], + assert repr(tokens.to_array([attrs.ORTH])) == repr(numpy.array([[3699], + [3699], [3750], [5965]], dtype=numpy.int32))