Update README.md
Browse files
README.md
CHANGED
@@ -2,4 +2,14 @@ This model is fine-tuned on Medical data to perform summarization.
|
|
2 |
|
3 |
Data used from https://data.mendeley.com/datasets/gg58kc7zy7
|
4 |
|
5 |
-
Size of data ~ 10k
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
Data used from https://data.mendeley.com/datasets/gg58kc7zy7
|
4 |
|
5 |
+
Size of data ~ 10k
|
6 |
+
|
7 |
+
```python
|
8 |
+
from transformers import pipeline
|
9 |
+
summarizer = pipeline("summarization", model="Mit1208/Med-Sum")
|
10 |
+
|
11 |
+
long_text = "Here is a lot of text I don't want to read. Replace me"
|
12 |
+
|
13 |
+
result = summarizer(long_text)
|
14 |
+
print(result[0]["summary_text"])
|
15 |
+
```
|