Mahalingam commited on
Commit
d254525
1 Parent(s): dda7d01

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -8
README.md CHANGED
@@ -58,14 +58,26 @@ Install the required dependencies:
58
 
59
  ```python
60
  from transformers import pipeline
61
- summarizer = pipeline("summarization", model="philschmid/distilbart-cnn-12-6-samsum")
62
-
63
- conversation = '''Jeff: Can I train a 🤗 Transformers model on Amazon SageMaker?
64
- Philipp: Sure you can use the new Hugging Face Deep Learning Container.
65
- Jeff: ok.
66
- Jeff: and how can I get started?
67
- Jeff: where can I find documentation?
68
- Philipp: ok, ok you can find everything here. https://huggingface.co/blog/the-partnership-amazon-sagemaker-and-hugging-face
 
 
 
 
 
 
 
 
 
 
 
 
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
  ```