Run this model with HF Jobs
Run d4data/biomedical-ner-all on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/d4data/biomedical-ner-all. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/d4data/biomedical-ner-all on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use d4data/biomedical-ner-all with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d4data/biomedical-ner-all with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="d4data/biomedical-ner-all")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("d4data/biomedical-ner-all") model = AutoModelForTokenClassification.from_pretrained("d4data/biomedical-ner-all", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
updated model
Browse filesFiles changed (3)
123---license: apache-2.0---12345678910111213141516171819202122232425262728293031323334353637383940414243444546---license: apache-2.0language:- entags:- Token Classificationco2_eq_emissions: 0.0279399890043426 Kgwidget:- text: "CASE: A 28-year-old previously healthy man presented with a 6-week history of palpitations.The symptoms occurred during rest, 2–3 times per week, lasted up to 30 minutes at a time and were associated with dyspnea.Except for a grade 2/6 holosystolic tricuspid regurgitation murmur (best heard at the left sternal border with inspiratory accentuation), physical examination yielded unremarkable findings."example_title: "example 1"- text: "A 63-year-old woman with no known cardiac history presented with a sudden onset of dyspnea requiring intubation and ventilatory support out of hospital.She denied preceding symptoms of chest discomfort, palpitations, syncope or infection.The patient was afebrile and normotensive, with a sinus tachycardia of 140 beats/min."example_title: "example 2"- text: "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."example_title: "example 3"---## About the ModelAn English Named Entity Recognition model, trained on _________ to recognize the bio-medical entities from a given text corpus (case reports etc.). This model was built on top of distilbert-base-uncased- Dataset :- Carbon emission : 0.0279399890043426 Kg- Training time : 30.16527 minute- GPU used : 1 x GeForce RTX 3060 Laptop GPU## UsageThe easiest way is to load the inference api from huggingface and second method is through the pipeline object offered by transformers library.```pythonfrom transformers import pipelinefrom transformers import AutoTokenizer, AutoModelForTokenClassificationtokenizer = AutoTokenizer.from_pretrained("d4data/biomedical-all")model = AutoModelForTokenClassification.from_pretrained("d4data/biomedical-all")pipe = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple") # pass device=0 if using gpupipe("""The patient reported no recurrence of palpitations at follow-up 6 months after the ablation.""")```## AuthorThis model is part of the Research topic "AI in Biomedical field" conducted by Deepak John Reji, Shaina Raza. If you use this work (code, model or dataset), please star at:> repo yet to create, <>
123version https://git-lfs.github.com/spec/v1oid sha256:68379ec0b19ee4c0335ffcf30d7e88f30b556c70868801cab4cc1a6d8c73bc2esize 265814261123version https://git-lfs.github.com/spec/v1oid sha256:bd09191cafbd80946b97c301ee5bd56718f94276edff341d15d11d2992f2d699size 265814261
1{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "distilbert-base-uncased", "tokenizer_class": "DistilBertTokenizer"}1{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "cuda": 0, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "distilbert-base-uncased", "tokenizer_class": "DistilBertTokenizer"}
README.md+43
pytorch_model.bin+1-1
tokenizer_config.json+1-1