diff --git a/spacy/tests/website/conftest.py b/spacy/tests/website/conftest.py index e2c64cfd7..7cde89b9d 100644 --- a/spacy/tests/website/conftest.py +++ b/spacy/tests/website/conftest.py @@ -10,9 +10,11 @@ def nlp(): data_dir = os.environ.get('SPACY_DATA') else: data_dir = None - return English(data_dir=data_dir) + return English(path=data_dir) @pytest.fixture() def doc(nlp): + for word in ['Hello', ',', 'world', '.', 'Here', 'are', 'two', 'sentences', '.']: + _ = nlp.vocab[word] return nlp('Hello, world. Here are two sentences.')