Instructions to use john-dope/ben_bioinfer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use john-dope/ben_bioinfer with PEFT:
from peft import PeftModel from transformers import AutoModelForTokenClassification base_model = AutoModelForTokenClassification.from_pretrained("/data/hf_cache/models/microsoft/PubMedBERT") model = PeftModel.from_pretrained(base_model, "john-dope/ben_bioinfer") - Notebooks
- Google Colab
- Kaggle
Download stats.json from john-dope/ben_bioinfer: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/john-dope/ben_bioinfer/resolve/main/stats.json
- Command line
-
hf download hf://john-dope/ben_bioinfer/stats.json
-
curl -L -o stats.json https://huggingface.co/john-dope/ben_bioinfer/resolve/main/stats.json
1.09 kB
| { | |
| "train": { | |
| "text": { | |
| "character_length": { | |
| "min": 46, | |
| "5%": 85, | |
| "median": 173, | |
| "95%": 315, | |
| "max": 627, | |
| "total": 163544, | |
| "count": 894 | |
| } | |
| }, | |
| "entities": { | |
| "containing_text_count": { | |
| "GENETIC_ELEMENT": 893 | |
| }, | |
| "character_length": { | |
| "GENETIC_ELEMENT": { | |
| "min": 1, | |
| "5%": 3, | |
| "median": 6, | |
| "95%": 21, | |
| "max": 46, | |
| "total": 29109, | |
| "count": 3501 | |
| } | |
| } | |
| } | |
| }, | |
| "test": { | |
| "text": { | |
| "character_length": { | |
| "min": 70, | |
| "5%": 102, | |
| "median": 179, | |
| "95%": 351, | |
| "max": 481, | |
| "total": 40830, | |
| "count": 206 | |
| } | |
| }, | |
| "entities": { | |
| "containing_text_count": { | |
| "GENETIC_ELEMENT": 206 | |
| }, | |
| "character_length": { | |
| "GENETIC_ELEMENT": { | |
| "min": 1, | |
| "5%": 3, | |
| "median": 6, | |
| "95%": 21, | |
| "max": 38, | |
| "total": 6629, | |
| "count": 792 | |
| } | |
| } | |
| } | |
| } | |
| } |