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
File size: 1,552 Bytes
6c9f104 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | {
"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
}
}
}
}
} |