MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / doc_to_text

Method doc_to_text

lm-eval-harness/lm_eval/tasks/scrolls/task.py:186–187  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

184 return " " + ", ".join(doc["outputs"])
185
186 def doc_to_text(self, doc):
187 return f"{doc['text']}\n\nQuestion: {doc['question']}\nAnswer:"
188
189 def higher_is_better(self):
190 return {x: True for x in self._scrolls_metrics().keys()}

Callers 1

_get_prune_textMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected