From eac3f700fb243a35b983628823823628c00b1dba Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 12 Jan 2017 21:56:32 +0100 Subject: [PATCH] Add fixture for entity recognizer --- spacy/tests/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spacy/tests/conftest.py b/spacy/tests/conftest.py index a2fce882e..05199c9c3 100644 --- a/spacy/tests/conftest.py +++ b/spacy/tests/conftest.py @@ -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()