mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-04 21:50:35 +03:00
* Move nlp variable from global scope
This commit is contained in:
parent
d37dca72dd
commit
1d5f20fdda
|
@ -5,11 +5,11 @@ from spacy.en import English
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
EN = English()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def doc():
|
def doc():
|
||||||
|
EN = English()
|
||||||
return EN('This is a sentence. This is another sentence. And a third.')
|
return EN('This is a sentence. This is another sentence. And a third.')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user