Skip to content

Commit

Permalink
Fix legacy NER test warning in CI (#430)
Browse files Browse the repository at this point in the history
* Fix legacy NER test warning in CI.

* Add warning filter for NER inconsistency test.
  • Loading branch information
rmitsch authored Jan 29, 2024
1 parent 09fcad1 commit 0fc4633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spacy_llm/tests/tasks/legacy/test_ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ def test_ner_to_disk(noop_config, tmp_path: Path):
assert task1._label_dict == task2._label_dict == labels


@pytest.mark.filterwarnings("ignore:Task supports sharding")
def test_label_inconsistency():
"""Test whether inconsistency between specified labels and labels in examples is detected."""
cfg = f"""
Expand Down
1 change: 1 addition & 0 deletions spacy_llm/tests/tasks/test_ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ def test_ner_to_disk(noop_config: str, tmp_path: Path):
assert task1._label_dict == task2._label_dict == labels


@pytest.mark.filterwarnings("ignore:Task supports sharding")
def test_label_inconsistency():
"""Test whether inconsistency between specified labels and labels in examples is detected."""
cfg = f"""
Expand Down

0 comments on commit 0fc4633

Please sign in to comment.