spaCy/spacy/tests/spans/conftest.py

10 lines
216 B
Python
Raw Normal View History

2015-06-07 19:07:59 +03:00
import pytest
2015-07-14 01:08:50 +03:00
from spacy.en import English, LOCAL_DATA_DIR
import os
2015-06-07 19:07:59 +03:00
@pytest.fixture(scope="session")
def en_nlp():
2015-07-14 01:08:50 +03:00
data_dir = os.environ.get('SPACY_DATA', LOCAL_DATA_DIR)
2015-09-12 05:23:13 +03:00
return English(data_dir=data_dir)