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

Method doc_to_text

test/general/lm_eval/tasks/squad.py:71–83  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

69 return self.dataset["validation"]
70
71 def doc_to_text(self, doc):
72 return (
73 "Title: "
74 + doc["title"]
75 + "\n\n"
76 + "Background: "
77 + doc["context"]
78 + "\n\n"
79 + "Question: "
80 + doc["question"]
81 + "\n\n"
82 + "Answer:"
83 )
84
85 def should_decontaminate(self):
86 return True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected