Instructions to use ProdicusII/ZeroShotBioNER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProdicusII/ZeroShotBioNER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ProdicusII/ZeroShotBioNER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ProdicusII/ZeroShotBioNER") model = AutoModelForTokenClassification.from_pretrained("ProdicusII/ZeroShotBioNER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from ProdicusII/ZeroShotBioNER: direct link, hf CLI and curl.
- Browser
- Download file 835 Bytes
-
https://huggingface.co/ProdicusII/ZeroShotBioNER/resolve/refs%2Fpr%2F2/README.md
- Command line
-
hf download hf://ProdicusII/ZeroShotBioNER@refs/pr/2/README.md
-
curl -L -o README.md https://huggingface.co/ProdicusII/ZeroShotBioNER/resolve/refs%2Fpr%2F2/README.md
835 Bytes
| license: mit | |
| datasets: | |
| - bigbio/chemdner | |
| - ncbi_disease | |
| - jnlpba | |
| - bigbio/n2c2_2018_track2 | |
| - bigbio/bc5cdr | |
| language: | |
| - en | |
| metrics: | |
| - precision | |
| - recall | |
| - f1 | |
| pipeline_tag: token-classification | |
| tags: | |
| - token-classification | |
| - biology | |
| - medical | |
| - zero-shot | |
| - few-shot | |
| # Zero and few shot NER for biomedical texts | |
| ## Model description | |
| Model takes as input two strings. String1 is NER label. String1 must be phrase for entity. String2 is short text where String1 is searched for semantically. | |
| model outputs list of zeros and ones corresponding to the occurance of NER and corresponing to tokens(tokens given by transformer tokenizer) of the Sring2, not to words. | |
| ## Example of usage | |
| ## Code availibility | |
| Code used for training and testing the model is available at https://github.com/br-ai-ns-institute/Zero-ShotNER | |
| ## Citation |