Hacknite
Collection
This is the collection of all the models used in our project SymtoCare
โข
6 items
โข
Updated
This model is a fine-tuned version of DeBERTaV3 on the PubMED Dataset.
MED-NER Model was finetuned on BERT to recognize 41 Medical entities.
The following hyperparameters were used during training:
The easiest way is to load the inference api from huggingface and second method is through the pipeline object offered by transformers library.
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="NeuronZero/MED-NER", aggregation_strategy='simple')
result = pipe('A 48 year-old female presented with vaginal bleeding and abnormal Pap smears.
Upon diagnosis of invasive non-keratinizing SCC of the cervix, she underwent a radical hysterectomy with salpingo-oophorectomy which demonstrated positive spread to the pelvic lymph nodes and the parametrium.
Pathological examination revealed that the tumour also extensively involved the lower uterine segment.')
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("NeuronZero/MED-NER")
model = AutoModelForTokenClassification.from_pretrained("NeuronZero/MED-NER")
Base model
microsoft/deberta-v3-base