spaCy/spacy/tests/website/conftest.py
2015-12-07 06:01:28 +01:00

15 lines
254 B
Python

from __future__ import unicode_literals
import pytest
import os
@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.')