mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 01:34:30 +03:00
update tests from master to follow v4 principles (2)
This commit is contained in:
parent
6ff5eb256c
commit
fc2723925b
|
@ -353,7 +353,6 @@ def test_entity_ruler_overlapping_spans(nlp):
|
|||
assert doc.ents[0].label_ == "FOOBAR"
|
||||
|
||||
|
||||
@pytest.mark.parametrize()
|
||||
def test_entity_ruler_fuzzy_pipe(nlp):
|
||||
ruler = nlp.add_pipe("entity_ruler")
|
||||
patterns = [{"label": "HELLO", "pattern": [{"LOWER": {"FUZZY": "hello"}}]}]
|
||||
|
@ -363,7 +362,6 @@ def test_entity_ruler_fuzzy_pipe(nlp):
|
|||
assert doc.ents[0].label_ == "HELLO"
|
||||
|
||||
|
||||
@pytest.mark.parametrize()
|
||||
def test_entity_ruler_fuzzy(nlp):
|
||||
ruler = nlp.add_pipe("entity_ruler")
|
||||
patterns = [{"label": "HELLO", "pattern": [{"LOWER": {"FUZZY": "hello"}}]}]
|
||||
|
@ -373,7 +371,6 @@ def test_entity_ruler_fuzzy(nlp):
|
|||
assert doc.ents[0].label_ == "HELLO"
|
||||
|
||||
|
||||
@pytest.mark.parametrize()
|
||||
def test_entity_ruler_fuzzy_disabled(nlp):
|
||||
@registry.misc("test_fuzzy_compare_disabled")
|
||||
def make_test_fuzzy_compare_disabled():
|
||||
|
|
Loading…
Reference in New Issue
Block a user