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

Method doc_to_text

test/general/lm_eval/tasks/quac.py:57–69  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

55 return doc
56
57 def doc_to_text(self, doc):
58 return (
59 "TITLE: "
60 + doc["title"]
61 + "\n"
62 + "PARAGRAPH: "
63 + doc["paragraph"]
64 + "\n\n"
65 + "Q: "
66 + doc["question"]
67 + "\n\n"
68 + "A: "
69 )
70
71 def should_decontaminate(self):
72 return True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected