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

Method doc_to_text

test/general/lm_eval/tasks/qasper.py:118–130  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

116 return False
117
118 def doc_to_text(self, doc):
119 return (
120 "TITLE: "
121 + doc["title"]
122 + "\n"
123 + "ABSTRACT: "
124 + doc["abstract"]
125 + "\n\n"
126 + "Q: "
127 + doc["question"]
128 + "\n\n"
129 + "A:"
130 )
131
132 def doc_to_target(self, doc):
133 answer = doc["answer"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected