MCPcopy Create free account
hub / github.com/WeixiangYAN/ClinicalLab / main

Function main

code/inference/eval.py:358–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356
357
358def main():
359 with open(data_load_path, mode='r', encoding='utf-8') as file:
360 dataset = json.load(file)
361
362 for index in tqdm(range(len(dataset))):
363 dataset[index] = generate_hospital_guide(dataset[index])
364 dataset[index] = generate_clinical_diagnosis(dataset[index])
365 dataset[index] = generate_imaging_diagnosis(dataset[index])
366
367 with open(result_save_path, mode='w', encoding='utf-8') as file:
368 json.dump(dataset, file, ensure_ascii=False, indent=2)
369
370
371if __name__ == '__main__':

Callers 1

eval.pyFile · 0.85

Calls 3

generate_hospital_guideFunction · 0.85

Tested by

no test coverage detected