mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
10 lines
236 B
Python
10 lines
236 B
Python
import pytest
|
|
from spacy.en import English, LOCAL_DATA_DIR
|
|
import os
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def en_nlp():
|
|
data_dir = os.environ.get('SPACY_DATA', LOCAL_DATA_DIR)
|
|
return English(load_vectors=False, data_dir=data_dir)
|