()
| 288 | |
| 289 | |
| 290 | def test_textcat_reduce_invalid_args(): |
| 291 | textcat_reduce = registry.architectures.get("spacy.TextCatReduce.v1") |
| 292 | tok2vec = make_test_tok2vec() |
| 293 | with pytest.raises(ValueError, match=r"must be used with at least one reduction"): |
| 294 | textcat_reduce( |
| 295 | tok2vec=tok2vec, |
| 296 | exclusive_classes=False, |
| 297 | use_reduce_first=False, |
| 298 | use_reduce_last=False, |
| 299 | use_reduce_max=False, |
| 300 | use_reduce_mean=False, |
| 301 | ) |
nothing calls this directly
no test coverage detected
searching dependent graphs…