mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +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
|
||||
|
||||
|
||||
EN = English()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def doc():
|
||||
EN = English()
|
||||
return EN('This is a sentence. This is another sentence. And a third.')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user