spaCy/tests/tokenizer/conftest.py

12 lines
207 B
Python

import pytest
from spacy.en import English
@pytest.fixture(scope="session")
def EN():
return English(load_vectors=False)
@pytest.fixture(scope="session")
def en_tokenizer(EN):
return EN.tokenizer