Run this model with HF Jobs
Run ProdicusII/ZeroShotBioNER 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/ProdicusII/ZeroShotBioNER. 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/ProdicusII/ZeroShotBioNER 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 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
Commit ·
cfbedc0
1
Parent(s): 0c96eb6
Jos citat fali (#5)
Browse files- Jos citat fali (1a59e5228a2be23eacf39907496277700a233259)
Co-authored-by: Nikola <nikolamilosevic@users.noreply.huggingface.co>
5 unmodified lines6789101116 unmodified lines2829303132333410 unmodified lines4546474849505 unmodified lines- jnlpba- bigbio/n2c2_2018_track2- bigbio/bc5cdrlanguage:- enmetrics:16 unmodified linesmodel outputs list of zeros and ones corresponding to the occurance of Named Entity and corresponing to the tokens(tokens given by transformer tokenizer) of the Sring2.## Example of usage```from transformers import AutoTokenizerfrom transformers import BertForTokenClassification10 unmodified linesprint(prediction_logits)```## Code availibilityCode used for training and testing the model is available at https://github.com/br-ai-ns-institute/Zero-ShotNER5 unmodified lines67891011121316 unmodified lines3031323334353610 unmodified lines474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394955 unmodified lines- jnlpba- bigbio/n2c2_2018_track2- bigbio/bc5cdrwidget:- text: Drug<SEP>He was given aspirin and paracetamol.language:- enmetrics:16 unmodified linesmodel outputs list of zeros and ones corresponding to the occurance of Named Entity and corresponing to the tokens(tokens given by transformer tokenizer) of the Sring2.## Example of usage```pythonfrom transformers import AutoTokenizerfrom transformers import BertForTokenClassification10 unmodified linesprint(prediction_logits)```## Available classesThe following datasets and entities were used for training and therefore they can be used as label in the first segment (as a first string). Note that multiword string have been merged.* NCBI* Specific Disease* Composite Mention* Modifier* Disease Class* BIORED* Sequence Variant* Gene Or Gene Product* Disease Or Phenotypic Feature* Chemical Entity* Cell Line* Organism Taxon* CDR Disease* Chemical* CHEMDNER* Chemical* Chemical Family* JNLPBA* Protein* DNA* Cell Type* Cell Line* RNA* n2c2* Drug* Frequency* Strength* Dosage* Form* Reason* Route* ADE* DurationOn top of this, one can use the model in zero-shot regime with other classes, and also fine-tune it with few examples of other classes.## Code availibilityCode used for training and testing the model is available at https://github.com/br-ai-ns-institute/Zero-ShotNER
README.md+46-1