MCPcopy
hub / github.com/impira/docquery / test_impira_dataset

Function test_impira_dataset

tests/test_classification_end_to_end.py:45–49  ·  view source on GitHub ↗
(example, model)

Source from the content-addressed store, hash-verified

43@pytest.mark.parametrize("example", EXAMPLES)
44@pytest.mark.parametrize("model", CHECKPOINTS.keys())
45def test_impira_dataset(example, model):
46 document = load_document(example.path)
47 pipe = pipeline("document-classification", model=CHECKPOINTS[model])
48 resp = pipe(top_k=1, **document.context)
49 assert resp == [{"label": x} for x in example.classes[model]]

Callers

nothing calls this directly

Calls 2

load_documentFunction · 0.90
pipelineFunction · 0.90

Tested by

no test coverage detected