spaCy/tests/spans/conftest.py
Matthew Honnibal c808cd50d9 * Upd tests
2015-09-12 04:23:13 +02:00

10 lines
216 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(data_dir=data_dir)