Mahalingam
commited on
Commit
•
d254525
1
Parent(s):
dda7d01
Update README.md
Browse files
README.md
CHANGED
@@ -58,14 +58,26 @@ Install the required dependencies:
|
|
58 |
|
59 |
```python
|
60 |
from transformers import pipeline
|
61 |
-
summarizer = pipeline("summarization", model="
|
62 |
-
|
63 |
-
conversation = '''
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
'''
|
70 |
nlp(conversation)
|
71 |
```
|
|
|
58 |
|
59 |
```python
|
60 |
from transformers import pipeline
|
61 |
+
summarizer = pipeline("summarization", model="Mahalingam/DistilBart-Med-Summary")
|
62 |
+
|
63 |
+
conversation = '''write the below JSON into normal text
|
64 |
+
{
|
65 |
+
"Sex": "M",
|
66 |
+
"ID": 585248,
|
67 |
+
"DateOfBirth": "08/10/1995",
|
68 |
+
"Age": "28 years",
|
69 |
+
"VisitDate": "09/25/2023",
|
70 |
+
"LogNumber": 6418481,
|
71 |
+
"Historian": "Self",
|
72 |
+
"TriageNotes": ["fever"],
|
73 |
+
"HistoryOfPresentIllness": {
|
74 |
+
"Complaint": [
|
75 |
+
"The patient presents with a chief complaint of chills.",
|
76 |
+
"The problem is made better by exercise and rest.",
|
77 |
+
"The patient also reports change in appetite and chest pain/pressure as abnormal symptoms related to the complaint."
|
78 |
+
]
|
79 |
+
}
|
80 |
+
}
|
81 |
'''
|
82 |
nlp(conversation)
|
83 |
```
|