From 5803cb87a42b3b0498ac5a79fc2d700272950ea8 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 23 Nov 2022 08:57:21 +0100 Subject: [PATCH] Add test for spancat predict with zero suggestions --- spacy/tests/pipeline/test_spancat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/tests/pipeline/test_spancat.py b/spacy/tests/pipeline/test_spancat.py index 15256a763..34ab6e061 100644 --- a/spacy/tests/pipeline/test_spancat.py +++ b/spacy/tests/pipeline/test_spancat.py @@ -397,6 +397,7 @@ def test_zero_suggestions(): assert set(spancat.labels) == {"LOC", "PERSON"} nlp.update(train_examples, sgd=optimizer) + nlp("zero") def test_set_candidates():