From 28c659c1fe67da8cc4f118c4eb5008e697f92656 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 18 Jan 2016 17:25:04 +0100 Subject: [PATCH] * Fix import for numpy --- spacy/tests/tokens/test_tokens_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/tests/tokens/test_tokens_api.py b/spacy/tests/tokens/test_tokens_api.py index 1641ac09b..bdb0cd3b9 100644 --- a/spacy/tests/tokens/test_tokens_api.py +++ b/spacy/tests/tokens/test_tokens_api.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals from spacy.tokens import Doc from spacy.en import English +import numpy import pytest @@ -155,7 +156,7 @@ def test_merge_hang(): text = 'through North and South Carolina' EN = English(parser=False) doc = EN(text, tag=True) - heads = np.asarray([[0, 3, -1, -2, -4]], dtype='int32') + heads = numpy.asarray([[0, 3, -1, -2, -4]], dtype='int32') doc.from_array([HEAD], heads.T) doc.merge(18, 32, '', '', 'ORG') doc.merge(8, 32, '', '', 'ORG')