MCPcopy Create free account
hub / github.com/InternScience/SciReason / _parse

Function _parse

opencompass/datasets/MedCalc_Bench.py:212–227  ·  view source on GitHub ↗
(item, prompt_mode)

Source from the content-addressed store, hash-verified

210
211
212def _parse(item, prompt_mode):
213 item['row_number'] = item['Row Number']
214 item['calculator_id'] = item['Calculator ID']
215 item['calculator_name'] = item['Calculator Name']
216 item['category'] = item['Category']
217 item['output_type'] = item['Output Type']
218 item['note_id'] = item['Note ID']
219 item['note_type'] = item['Note Type']
220 item['patient_note'] = item['Patient Note']
221 item['question'] = item['Question']
222 item['relevant_entities'] = item['Relevant Entities']
223 item['ground_truth_answer'] = item['Ground Truth Answer']
224 item['lower_limit'] = item['Lower Limit']
225 item['upper_limit'] = item['Upper Limit']
226 item['ground_truth_explanation'] = item['Ground Truth Explanation']
227 return item
228
229
230@LOAD_DATASET.register_module()

Callers 1

loadMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected