From 7939c6388656e1abb932b2deb1af90928c297aa2 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Wed, 12 Feb 2020 12:26:27 +0100 Subject: [PATCH] use English instead of model --- spacy/tests/regression/test_issue4903.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spacy/tests/regression/test_issue4903.py b/spacy/tests/regression/test_issue4903.py index 0a255d9a8..82e21b79f 100644 --- a/spacy/tests/regression/test_issue4903.py +++ b/spacy/tests/regression/test_issue4903.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals import spacy +from spacy.lang.en import English from spacy.tokens import Span, Doc @@ -30,9 +31,10 @@ class CustomPipe: def test_issue4903(): # ensures that this runs correctly and doesn't hang or crash on Windows / macOS - nlp = spacy.load("en_core_web_sm") + nlp = English() custom_component = CustomPipe() - nlp.add_pipe(custom_component, after="parser") + nlp.add_pipe(nlp.create_pipe("sentencizer")) + nlp.add_pipe(custom_component, after="sentencizer") text = ["I like bananas.", "Do you like them?", "No, I prefer wasabi."] docs = list(nlp.pipe(text, n_process=2))