spaCy/tests/website/conftest.py

14 lines
244 B
Python
Raw Normal View History

2015-09-28 12:22:13 +00:00
from __future__ import unicode_literals
import pytest
@pytest.fixture(scope='session')
def nlp():
from spacy.en import English
return English()
@pytest.fixture()
def doc(nlp):
return nlp('Hello, world. Here are two sentences.')