mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
Add fixture for entity recognizer
This commit is contained in:
parent
b438cfddbc
commit
eac3f700fb
|
@ -58,6 +58,11 @@ def stringstore():
|
|||
return StringStore()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def en_entityrecognizer():
|
||||
return English.Defaults.create_entity()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def text_file():
|
||||
return StringIO()
|
||||
|
|
Loading…
Reference in New Issue
Block a user