加载中…
加载中…
model.safetensors 736 MBtraining_args.bin 4.7 kBThis model is a fine-tuned version of DeBERTa on the PubMED Dataset.
Medical NER Model 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="Clinical-AI-Apollo/Medical-NER", aggregation_strategy='simple')
result = pipe('45 year old woman diagnosed with CAD')
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Clinical-AI-Apollo/Medical-NER")
model = AutoModelForTokenClassification.from_pretrained("Clinical-AI-Apollo/Medical-NER")
Author: Saketh Mattupalli