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

Method doc_to_text

test/general/lm_eval/tasks/cbt.py:73–76  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

71 return text
72
73 def doc_to_text(self, doc):
74 passage = " ".join(doc["sentences"])
75 text = "Passage: " + passage + "\nQuestion: " + doc["question"]
76 return self.detokenize(text)
77
78 def should_decontaminate(self):
79 return True

Callers

nothing calls this directly

Calls 1

detokenizeMethod · 0.95

Tested by

no test coverage detected