mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-02 04:03:19 +03:00
Add fixture for StringStore
This commit is contained in:
parent
99d66d613a
commit
9b6784bab5
|
@ -11,6 +11,7 @@ from ..nl import Dutch
|
||||||
from ..sv import Swedish
|
from ..sv import Swedish
|
||||||
from ..hu import Hungarian
|
from ..hu import Hungarian
|
||||||
from ..tokens import Doc
|
from ..tokens import Doc
|
||||||
|
from ..strings import StringStore
|
||||||
from ..attrs import ORTH, TAG, HEAD, DEP
|
from ..attrs import ORTH, TAG, HEAD, DEP
|
||||||
|
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
@ -51,6 +52,9 @@ def de_tokenizer():
|
||||||
def hu_tokenizer():
|
def hu_tokenizer():
|
||||||
return Hungarian.Defaults.create_tokenizer()
|
return Hungarian.Defaults.create_tokenizer()
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def stringstore():
|
||||||
|
return StringStore()
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def text_file():
|
def text_file():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user