shanover commited on
Commit
e8fab4c
1 Parent(s): 92b7cb5

Upload 6 files

Browse files

A model based on bert to classify text containing symptoms into diseases.

config.json ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6",
20
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9",
23
+ "10": "LABEL_10",
24
+ "11": "LABEL_11",
25
+ "12": "LABEL_12",
26
+ "13": "LABEL_13",
27
+ "14": "LABEL_14",
28
+ "15": "LABEL_15",
29
+ "16": "LABEL_16",
30
+ "17": "LABEL_17",
31
+ "18": "LABEL_18",
32
+ "19": "LABEL_19",
33
+ "20": "LABEL_20",
34
+ "21": "LABEL_21",
35
+ "22": "LABEL_22",
36
+ "23": "LABEL_23",
37
+ "24": "LABEL_24",
38
+ "25": "LABEL_25",
39
+ "26": "LABEL_26",
40
+ "27": "LABEL_27",
41
+ "28": "LABEL_28",
42
+ "29": "LABEL_29",
43
+ "30": "LABEL_30",
44
+ "31": "LABEL_31",
45
+ "32": "LABEL_32",
46
+ "33": "LABEL_33",
47
+ "34": "LABEL_34",
48
+ "35": "LABEL_35",
49
+ "36": "LABEL_36",
50
+ "37": "LABEL_37",
51
+ "38": "LABEL_38",
52
+ "39": "LABEL_39",
53
+ "40": "LABEL_40"
54
+ },
55
+ "initializer_range": 0.02,
56
+ "intermediate_size": 3072,
57
+ "label2id": {
58
+ "LABEL_0": 0,
59
+ "LABEL_1": 1,
60
+ "LABEL_10": 10,
61
+ "LABEL_11": 11,
62
+ "LABEL_12": 12,
63
+ "LABEL_13": 13,
64
+ "LABEL_14": 14,
65
+ "LABEL_15": 15,
66
+ "LABEL_16": 16,
67
+ "LABEL_17": 17,
68
+ "LABEL_18": 18,
69
+ "LABEL_19": 19,
70
+ "LABEL_2": 2,
71
+ "LABEL_20": 20,
72
+ "LABEL_21": 21,
73
+ "LABEL_22": 22,
74
+ "LABEL_23": 23,
75
+ "LABEL_24": 24,
76
+ "LABEL_25": 25,
77
+ "LABEL_26": 26,
78
+ "LABEL_27": 27,
79
+ "LABEL_28": 28,
80
+ "LABEL_29": 29,
81
+ "LABEL_3": 3,
82
+ "LABEL_30": 30,
83
+ "LABEL_31": 31,
84
+ "LABEL_32": 32,
85
+ "LABEL_33": 33,
86
+ "LABEL_34": 34,
87
+ "LABEL_35": 35,
88
+ "LABEL_36": 36,
89
+ "LABEL_37": 37,
90
+ "LABEL_38": 38,
91
+ "LABEL_39": 39,
92
+ "LABEL_4": 4,
93
+ "LABEL_40": 40,
94
+ "LABEL_5": 5,
95
+ "LABEL_6": 6,
96
+ "LABEL_7": 7,
97
+ "LABEL_8": 8,
98
+ "LABEL_9": 9
99
+ },
100
+ "layer_norm_eps": 1e-12,
101
+ "max_position_embeddings": 512,
102
+ "model_type": "bert",
103
+ "num_attention_heads": 12,
104
+ "num_hidden_layers": 12,
105
+ "pad_token_id": 0,
106
+ "position_embedding_type": "absolute",
107
+ "problem_type": "single_label_classification",
108
+ "torch_dtype": "float32",
109
+ "transformers_version": "4.31.0",
110
+ "type_vocab_size": 2,
111
+ "use_cache": true,
112
+ "vocab_size": 30522
113
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5361e4609186b618c7e2b2bacc799c17121b975c03e0ef58f6c9296473b9e0ea
3
+ size 438120625
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,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff