Views
No views yet
1from transformers import pipeline
2summarizer = pipeline("summarization", model="Mahalingam/DistilBart-Med-Summary")
3
4conversation = '''write the below JSON into normal text
5{
6 "Sex": "M",
7 "ID": 585248,
8 "DateOfBirth": "08/10/1995",
9 "Age": "28 years",
10 "VisitDate": "09/25/2023",
11 "LogNumber": 6418481,
12 "Historian": "Self",
13 "TriageNotes": ["fever"],
14 "HistoryOfPresentIllness": {
15 "Complaint": [
16 "The patient presents with a chief complaint of chills.",
17 "The problem is made better by exercise and rest.",
18 "The patient also reports change in appetite and chest pain/pressure as abnormal symptoms related to the complaint."
19 ]
20 }
21}
22'''
23nlp(conversation)