Instructions to use john-dope/ben_bc5cdr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use john-dope/ben_bc5cdr 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_bc5cdr") - Notebooks
- Google Colab
- Kaggle
Download stats.json from john-dope/ben_bc5cdr: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/john-dope/ben_bc5cdr/resolve/main/stats.json
- Command line
-
hf download hf://john-dope/ben_bc5cdr/stats.json
-
curl -L -o stats.json https://huggingface.co/john-dope/ben_bc5cdr/resolve/main/stats.json
1.55 kB
| { | |
| "train": { | |
| "text": { | |
| "character_length": { | |
| "min": 227, | |
| "5%": 474, | |
| "median": 1284, | |
| "95%": 2192, | |
| "max": 3907, | |
| "total": 1299210, | |
| "count": 1000 | |
| } | |
| }, | |
| "entities": { | |
| "containing_text_count": { | |
| "CHEMICAL": 1000, | |
| "CLINICAL_CONDITION": 1000 | |
| }, | |
| "character_length": { | |
| "CLINICAL_CONDITION": { | |
| "min": 2, | |
| "5%": 3, | |
| "median": 12, | |
| "95%": 27, | |
| "max": 89, | |
| "total": 116314, | |
| "count": 8426 | |
| }, | |
| "CHEMICAL": { | |
| "min": 1, | |
| "5%": 3, | |
| "median": 9, | |
| "95%": 18, | |
| "max": 105, | |
| "total": 102863, | |
| "count": 10550 | |
| } | |
| } | |
| } | |
| }, | |
| "test": { | |
| "text": { | |
| "character_length": { | |
| "min": 204, | |
| "5%": 503, | |
| "median": 1416, | |
| "95%": 2130, | |
| "max": 3310, | |
| "total": 677020, | |
| "count": 500 | |
| } | |
| }, | |
| "entities": { | |
| "containing_text_count": { | |
| "CHEMICAL": 500, | |
| "CLINICAL_CONDITION": 500 | |
| }, | |
| "character_length": { | |
| "CHEMICAL": { | |
| "min": 1, | |
| "5%": 3, | |
| "median": 9, | |
| "95%": 17, | |
| "max": 120, | |
| "total": 50555, | |
| "count": 5385 | |
| }, | |
| "CLINICAL_CONDITION": { | |
| "min": 2, | |
| "5%": 3, | |
| "median": 12, | |
| "95%": 27, | |
| "max": 78, | |
| "total": 59030, | |
| "count": 4424 | |
| } | |
| } | |
| } | |
| } | |
| } |