spaCy/tests/spans/conftest.py

10 lines
236 B
Python
Raw Normal View History

2015-06-07 16:07:59 +00:00
import pytest
2015-07-13 22:08:50 +00:00
from spacy.en import English, LOCAL_DATA_DIR
import os
2015-06-07 16:07:59 +00:00
@pytest.fixture(scope="session")
def en_nlp():
2015-07-13 22:08:50 +00:00
data_dir = os.environ.get('SPACY_DATA', LOCAL_DATA_DIR)
return English(load_vectors=False, data_dir=data_dir)