()
| 356 | |
| 357 | |
| 358 | def 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 | |
| 371 | if __name__ == '__main__': |
no test coverage detected