Downloads · 30 days
10
30% of all-time downloads
DT4H/cardio-ner-it-cardioberta-multilabel
cardio-ner-it-cardioberta-multilabel is a token classification model from DT4H. Use it when you need labels on individual words, such as names. The card lists the license as mit.
This is a DT4H/CardioBERTa.it base model finetuned for span classification on Italian cardiology clinical text, using IOB tagging.
Downloads · 30 days
10
30% of all-time downloads
All-time downloads
33
Public
Parameters
110M
440 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors440 MB · 100%
From the Hugging Face model README
This is a DT4H/CardioBERTa.it base model finetuned for span classification on Italian cardiology clinical text, using IOB tagging.
The input should be a string of Italian cardiology clinical text.
cardio-ner-it-cardioberta-multilabel is a multilabel span classification model (labels are independent per token, so overlapping entity types are possible). The classes that can be predicted are: DISEASE, MEDICATION, PROCEDURE, SYMPTOM.
from transformers import pipeline
ner_pipe = pipeline('ner',
model="cardio-ner-it-cardioberta-multilabel",
tokenizer="cardio-ner-it-cardioberta-multilabel",
aggregation_strategy="simple",
trust_remote_code=True)
named_ents = ner_pipe(SOME_TEXT)
For text longer than the model's max sequence length, use a sliding stride:
named_ents = ner_pipe(SOME_TEXT, stride=125)
10-fold cross-validation on the Italian portion of CardioCCC (DataTools4Heart Cardiology Clinical Case Corpus), batches 1+2, 508 documents, version 1_validated_without_sugs. The uploaded checkpoint is the arithmetic mean of the 10 per-fold checkpoints ("Run 1"/weight-averaging in the CardioLM paper).
This is part of the DT4H project.
For more details about training/eval and other scripts, see the CardioNER github repo and for more information on the background, see DataTools4Heart's Huggingface/Website.