MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / doc_to_text

Method doc_to_text

test/general/lm_eval/tasks/xcopa.py:48–54  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

46 return self.dataset["test"]
47
48 def doc_to_text(self, doc):
49 # Drop the period
50 connector = {
51 "cause": self.CAUSE,
52 "effect": self.EFFECT,
53 }[doc["question"]]
54 return doc["premise"].strip()[:-1] + f" {connector}"
55
56
57class XCopaEt(XCopa):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected