MCPcopy
hub / github.com/explosion/spaCy / test_textcat_reduce_invalid_args

Function test_textcat_reduce_invalid_args

spacy/tests/test_models.py:290–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288
289
290def 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 )

Callers

nothing calls this directly

Calls 2

make_test_tok2vecFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…