AGBonnet/augmented-clinical-notes
Viewer • Updated • 30k • 1.27k • 73
How to use hossboll/clinical-t5 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="hossboll/clinical-t5") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("hossboll/clinical-t5")
model = AutoModelForSeq2SeqLM.from_pretrained("hossboll/clinical-t5")This is a finetuned T5-small model from Google, a checkpoint with 60 million parameters, for clinical note summarization. It was finetuned with the augmented-clinical-notes dataset, available in the Hugging Face.
The model was created for learning purposes. Hence, although being briefly evaluated in this notebook, it should be further refined.
The following hyperparameters were used during training: