fix the label2id and id2label in config
Browse files- config.json +1 -35
config.json
CHANGED
@@ -1,35 +1 @@
|
|
1 |
-
{
|
2 |
-
"_name_or_path": "/home/ec2-user/SageMaker/LLM-NER-clinical-text/models/ncbi-disease/gatortrons/checkpoint-19026/",
|
3 |
-
"architectures": [
|
4 |
-
"MegatronBertForTokenClassification"
|
5 |
-
],
|
6 |
-
"attention_probs_dropout_prob": 0.1,
|
7 |
-
"hidden_act": "gelu",
|
8 |
-
"hidden_dropout_prob": 0.1,
|
9 |
-
"hidden_size": 1024,
|
10 |
-
"id2label": {
|
11 |
-
"0": "LABEL_0",
|
12 |
-
"1": "LABEL_1",
|
13 |
-
"2": "LABEL_2"
|
14 |
-
},
|
15 |
-
"initializer_range": 0.02,
|
16 |
-
"intermediate_size": 4096,
|
17 |
-
"label2id": {
|
18 |
-
"LABEL_0": 0,
|
19 |
-
"LABEL_1": 1,
|
20 |
-
"LABEL_2": 2
|
21 |
-
},
|
22 |
-
"layer_norm_eps": 1e-12,
|
23 |
-
"max_position_embeddings": 512,
|
24 |
-
"model_type": "megatron-bert",
|
25 |
-
"num_attention_heads": 16,
|
26 |
-
"num_hidden_layers": 24,
|
27 |
-
"pad_token_id": 0,
|
28 |
-
"position_embedding_type": "absolute",
|
29 |
-
"tokenizer_type": "BertWordPieceCase",
|
30 |
-
"torch_dtype": "float32",
|
31 |
-
"transformers_version": "4.37.1",
|
32 |
-
"type_vocab_size": 2,
|
33 |
-
"use_cache": true,
|
34 |
-
"vocab_size": 50176
|
35 |
-
}
|
|
|
1 |
+
{"_name_or_path": "UFNLP/gatortrons", "architectures": ["MegatronBertForTokenClassification"], "attention_probs_dropout_prob": 0.1, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 1024, "id2label": {"0": "O", "1": "B-disease", "2": "I-disease"}, "initializer_range": 0.02, "intermediate_size": 4096, "label2id": {"O": 0, "B-disease": 1, "I-disease": 2}, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "megatron-bert", "num_attention_heads": 16, "num_hidden_layers": 24, "pad_token_id": 0, "position_embedding_type": "absolute", "tokenizer_type": "BertWordPieceCase", "torch_dtype": "float32", "transformers_version": "4.37.1", "type_vocab_size": 2, "use_cache": true, "vocab_size": 50176}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|