Instructions to use john-dope/ben_bionlp_shared_task_2009 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use john-dope/ben_bionlp_shared_task_2009 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_bionlp_shared_task_2009") - Notebooks
- Google Colab
- Kaggle
File size: 1,334 Bytes
1cf1ddd | 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 | {
"train": {
"text": {
"character_length": {
"min": 440,
"5%": 863,
"median": 1549,
"95%": 2194,
"max": 3688,
"total": 1447976,
"count": 950
}
},
"entities": {
"containing_text_count": {
"SEQUENCE_FEATURE": 270,
"GENETIC_ELEMENT": 906
},
"character_length": {
"GENETIC_ELEMENT": {
"min": 1,
"5%": 3,
"median": 5,
"95%": 23,
"max": 107,
"total": 84966,
"count": 11380
},
"SEQUENCE_FEATURE": {
"min": 1,
"5%": 7,
"median": 8,
"95%": 23,
"max": 38,
"total": 5286,
"count": 528
}
}
}
},
"test": {
"text": {
"character_length": {
"min": 432,
"5%": 818,
"median": 1473,
"95%": 2488,
"max": 3225,
"total": 397171,
"count": 260
}
},
"entities": {
"containing_text_count": {
"GENETIC_ELEMENT": 260
},
"character_length": {
"GENETIC_ELEMENT": {
"min": 1,
"5%": 3,
"median": 5,
"95%": 23,
"max": 72,
"total": 26183,
"count": 3589
}
}
}
}
} |