Med-Sum / README.md
Mit1208's picture
Update README.md
1ff4e9f
|
raw
history blame
397 Bytes

This model is fine-tuned on Medical data to perform summarization.

Data used from https://data.mendeley.com/datasets/gg58kc7zy7

Size of data ~ 10k

from transformers import pipeline
summarizer = pipeline("summarization", model="Mit1208/Med-Sum")

long_text = "Here is a lot of text I don't want to read. Replace me"

result = summarizer(long_text)
print(result[0]["summary_text"])