MCPcopy Create free account
hub / github.com/huggingface/evaluate / __init__

Method __init__

tests/test_evaluator.py:63–65  ·  view source on GitHub ↗
(self, prefix="generated", task="text2text-generation")

Source from the content-addressed store, hash-verified

61
62class DummyText2TextGenerationPipeline:
63 def __init__(self, prefix="generated", task="text2text-generation"):
64 self.task = task
65 self.prefix = prefix
66
67 def __call__(self, inputs, **kwargs):
68 return [{f"{self.prefix}_text": "Lorem ipsum"} for _ in inputs]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected