MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / token_classification_assert

Function token_classification_assert

tests/unit/inference/test_inference.py:209–210  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

207
208
209def token_classification_assert(x, y):
210 return set(ent["word"] for ent in x) == set(ent["word"] for ent in y)
211
212
213def text_generation_assert(x, y):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected