Text Classification
Transformers
PyTorch
TensorBoard
bert
Generated from Trainer
text-embeddings-inference
Instructions to use sid321axn/Bio_ClinicalBERT-finetuned-medicalcondition with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sid321axn/Bio_ClinicalBERT-finetuned-medicalcondition with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sid321axn/Bio_ClinicalBERT-finetuned-medicalcondition")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sid321axn/Bio_ClinicalBERT-finetuned-medicalcondition") model = AutoModelForSequenceClassification.from_pretrained("sid321axn/Bio_ClinicalBERT-finetuned-medicalcondition", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 500
Browse files- .gitignore +1 -0
- config.json +48 -0
- pytorch_model.bin +3 -0
- runs/Jan20_09-13-36_19434fb4da9b/1674206081.814246/events.out.tfevents.1674206081.19434fb4da9b.1064.1 +3 -0
- runs/Jan20_09-13-36_19434fb4da9b/events.out.tfevents.1674206081.19434fb4da9b.1064.0 +3 -0
- runs/Jan20_09-24-42_19434fb4da9b/1674206703.1546137/events.out.tfevents.1674206703.19434fb4da9b.1064.3 +3 -0
- runs/Jan20_09-24-42_19434fb4da9b/events.out.tfevents.1674206703.19434fb4da9b.1064.2 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +16 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
checkpoint-*/
|
config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "emilyalsentzer/Bio_ClinicalBERT",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.1,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "Pain",
|
| 13 |
+
"1": "Depression",
|
| 14 |
+
"2": "High Blood Pressure",
|
| 15 |
+
"3": "Anxiety",
|
| 16 |
+
"4": "Migraine",
|
| 17 |
+
"5": "Diabetes, Type 2",
|
| 18 |
+
"6": "Weight Loss",
|
| 19 |
+
"7": "Insomnia",
|
| 20 |
+
"8": "Obesity"
|
| 21 |
+
},
|
| 22 |
+
"initializer_range": 0.02,
|
| 23 |
+
"intermediate_size": 3072,
|
| 24 |
+
"label2id": {
|
| 25 |
+
"Anxiety": 3,
|
| 26 |
+
"Depression": 1,
|
| 27 |
+
"Diabetes, Type 2": 5,
|
| 28 |
+
"High Blood Pressure": 2,
|
| 29 |
+
"Insomnia": 7,
|
| 30 |
+
"Migraine": 4,
|
| 31 |
+
"Obesity": 8,
|
| 32 |
+
"Pain": 0,
|
| 33 |
+
"Weight Loss": 6
|
| 34 |
+
},
|
| 35 |
+
"layer_norm_eps": 1e-12,
|
| 36 |
+
"max_position_embeddings": 512,
|
| 37 |
+
"model_type": "bert",
|
| 38 |
+
"num_attention_heads": 12,
|
| 39 |
+
"num_hidden_layers": 12,
|
| 40 |
+
"pad_token_id": 0,
|
| 41 |
+
"position_embedding_type": "absolute",
|
| 42 |
+
"problem_type": "single_label_classification",
|
| 43 |
+
"torch_dtype": "float32",
|
| 44 |
+
"transformers_version": "4.25.1",
|
| 45 |
+
"type_vocab_size": 2,
|
| 46 |
+
"use_cache": true,
|
| 47 |
+
"vocab_size": 28996
|
| 48 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b281f81b1bf7b9e3e059d8eb9ff2fee845997ca29fb227966f10ee275f1019d2
|
| 3 |
+
size 433341557
|
runs/Jan20_09-13-36_19434fb4da9b/1674206081.814246/events.out.tfevents.1674206081.19434fb4da9b.1064.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6cacafd7dec3501c36268909042279c65304da990855fc258c6791bad158fb5
|
| 3 |
+
size 5585
|
runs/Jan20_09-13-36_19434fb4da9b/events.out.tfevents.1674206081.19434fb4da9b.1064.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2047b51e76760c0b72ace68991fc4ecda44356e2b7057c2eb417442bdf4715db
|
| 3 |
+
size 4166
|
runs/Jan20_09-24-42_19434fb4da9b/1674206703.1546137/events.out.tfevents.1674206703.19434fb4da9b.1064.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3117a631add7096bfd436abd265e36a164b49800a325892631a6c0637a06ff91
|
| 3 |
+
size 5585
|
runs/Jan20_09-24-42_19434fb4da9b/events.out.tfevents.1674206703.19434fb4da9b.1064.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12af1c9700563f28adc1e158554f2968bd1b197e90c5f613f9c13367d8dbc05a
|
| 3 |
+
size 4136
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"mask_token": "[MASK]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"sep_token": "[SEP]",
|
| 6 |
+
"unk_token": "[UNK]"
|
| 7 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"do_basic_tokenize": true,
|
| 4 |
+
"do_lower_case": true,
|
| 5 |
+
"mask_token": "[MASK]",
|
| 6 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 7 |
+
"name_or_path": "emilyalsentzer/Bio_ClinicalBERT",
|
| 8 |
+
"never_split": null,
|
| 9 |
+
"pad_token": "[PAD]",
|
| 10 |
+
"sep_token": "[SEP]",
|
| 11 |
+
"special_tokens_map_file": null,
|
| 12 |
+
"strip_accents": null,
|
| 13 |
+
"tokenize_chinese_chars": true,
|
| 14 |
+
"tokenizer_class": "BertTokenizer",
|
| 15 |
+
"unk_token": "[UNK]"
|
| 16 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59bd080b6f2b1bf914584e8fdf450b16ae4e35e8d5269ebe363afa3572508990
|
| 3 |
+
size 3451
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|