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

Class DummyText2TextGenerationPipeline

tests/test_evaluator.py:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
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]
69
70
71class DummyTextClassificationPipeline:

Callers 3

setUpMethod · 0.85
test_summarizationMethod · 0.85
test_translationMethod · 0.85

Calls

no outgoing calls

Tested by 3

setUpMethod · 0.68
test_summarizationMethod · 0.68
test_translationMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…