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')