Spaces:
Running
Running
File size: 388 Bytes
0d38280 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# merge_kb.py
import json
with open("symptom_to_icd.json") as f:
symptom_to_icd = json.load(f)
with open("icd_to_description.json") as f:
icd_to_description = json.load(f)
kb = {
"symptom_to_icd": symptom_to_icd,
"icd_to_description": icd_to_description
}
with open("knowledge_base.json", "w", encoding="utf-8") as f:
json.dump(kb, f, indent=2, ensure_ascii=False)
|