* Move nlp variable from global scope

This commit is contained in:
Matthew Honnibal 2015-06-07 16:55:11 +02:00
parent d37dca72dd
commit 1d5f20fdda

View File

@ -5,11 +5,11 @@ from spacy.en import English
import pytest
EN = English()
@pytest.fixture
def doc():
EN = English()
return EN('This is a sentence. This is another sentence. And a third.')