Add test for spancat predict with zero suggestions

This commit is contained in:
Adriane Boyd 2022-11-23 08:57:21 +01:00
parent f0d8309a28
commit 5803cb87a4

View File

@ -397,6 +397,7 @@ def test_zero_suggestions():
assert set(spancat.labels) == {"LOC", "PERSON"} assert set(spancat.labels) == {"LOC", "PERSON"}
nlp.update(train_examples, sgd=optimizer) nlp.update(train_examples, sgd=optimizer)
nlp("zero")
def test_set_candidates(): def test_set_candidates():