From 2c8dd917858ddaee7619a9ab9f2599a6f374d0a0 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 23 Jan 2016 18:08:56 +0100 Subject: [PATCH] * Fix first code example on the website --- spacy/tests/website/test_home.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/spacy/tests/website/test_home.py b/spacy/tests/website/test_home.py index 3d9aa5dd6..53e527d5f 100644 --- a/spacy/tests/website/test_home.py +++ b/spacy/tests/website/test_home.py @@ -9,15 +9,10 @@ def token(doc): return doc[0] +@pytest.mark.models def test_load_resources_and_process_text(): - if os.environ.get('SPACY_DATA'): - data_dir = os.environ.get('SPACY_DATA') - else: - data_dir = None - print("Load EN from %s" % data_dir) - from spacy.en import English - nlp = English(data_dir=data_dir) + nlp = English() doc = nlp('Hello, world. Here are two sentences.')