Summarization
Transformers
PyTorch
Core ML
Safetensors
English
t5
text2text-generation
medical
text-generation-inference
Instructions to use Falconsai/medical_summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Falconsai/medical_summarization with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="Falconsai/medical_summarization")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Falconsai/medical_summarization") model = AutoModelForSeq2SeqLM.from_pretrained("Falconsai/medical_summarization") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
#4
by ayanjoshi2003 - opened
README.md
CHANGED
|
@@ -522,7 +522,7 @@ duplications of the alimentary tract are well - known but rare congenital malfor
|
|
| 522 |
magnetic resonance imaging can be used to detail the intimate nature of the cyst with the spinal canal .
|
| 523 |
duplications should have all three typical signs : first of all , they should be attached to at least one point of the alimentary tract ; second and third are that they should have a well - developed smooth muscle coat , and the epithelial lining of duplication should represent some portions of alimentary tract , respectively [ 2 , 10 , 12 ] . in summary , the cystic appearance of both can cause a misdiagnosis very easily due to the rarity of cystic oesophageal duplications as well as the higher incidence of hydatid cyst , especially in endemic areas .
|
| 524 |
"""
|
| 525 |
-
print(summarizer(MEDICAL_DOCUMENT, max_length=
|
| 526 |
>>> [{'summary_text': 'duplications of the alimentary tract are well - known but rare congenital malformations that can occur anywhere in the gastrointestinal ( gi ) tract from the tongue to the anus . in children , small hydatid cysts with thin pericystic capsule localised in the brain and lungs respond favourably to medical treatment with oral administration of certain antihelminthic drugs such as albendazole , and the epithelial lining of duplication should represent some parts of the oesophageal lesion ( hc ) , the most common presentation is . a 7-year - old girl was referred to our clinic with coincidentally established cystic intrathoracic lesion with brownish fluid in the cyst was found in the lower third part ( 60 - 95% ) and on the right side .'}]
|
| 527 |
```
|
| 528 |
|
|
|
|
| 522 |
magnetic resonance imaging can be used to detail the intimate nature of the cyst with the spinal canal .
|
| 523 |
duplications should have all three typical signs : first of all , they should be attached to at least one point of the alimentary tract ; second and third are that they should have a well - developed smooth muscle coat , and the epithelial lining of duplication should represent some portions of alimentary tract , respectively [ 2 , 10 , 12 ] . in summary , the cystic appearance of both can cause a misdiagnosis very easily due to the rarity of cystic oesophageal duplications as well as the higher incidence of hydatid cyst , especially in endemic areas .
|
| 524 |
"""
|
| 525 |
+
print(summarizer(MEDICAL_DOCUMENT, max_length=2000, min_length=1500, do_sample=False))
|
| 526 |
>>> [{'summary_text': 'duplications of the alimentary tract are well - known but rare congenital malformations that can occur anywhere in the gastrointestinal ( gi ) tract from the tongue to the anus . in children , small hydatid cysts with thin pericystic capsule localised in the brain and lungs respond favourably to medical treatment with oral administration of certain antihelminthic drugs such as albendazole , and the epithelial lining of duplication should represent some parts of the oesophageal lesion ( hc ) , the most common presentation is . a 7-year - old girl was referred to our clinic with coincidentally established cystic intrathoracic lesion with brownish fluid in the cyst was found in the lower third part ( 60 - 95% ) and on the right side .'}]
|
| 527 |
```
|
| 528 |
|