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

Method __init__

tests/test_evaluator.py:53–56  ·  view source on GitHub ↗
(self, prefix="generated", task="text-generation", num_return_sequences=1)

Source from the content-addressed store, hash-verified

51
52class DummyTextGenerationPipeline:
53 def __init__(self, prefix="generated", task="text-generation", num_return_sequences=1):
54 self.task = task
55 self.prefix = prefix
56 self.num_return_sequences = num_return_sequences
57
58 def __call__(self, inputs, **kwargs):
59 return [[{f"{self.prefix}_text": "Lorem ipsum"} for _ in range(self.num_return_sequences)] for _ in inputs]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected