bert-ner-i2b2 / config.json
connorboyle's picture
Fix Config File Formatting
97f4c67
raw
history blame
2.71 kB
{
"_name_or_path": "bert-base-cased",
"architectures": [
"BertForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
"gradient_checkpointing": false,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "O",
"1": "B-AGE",
"2": "I-AGE",
"3": "B-BIOID",
"4": "I-BIOID",
"5": "B-CITY",
"6": "I-CITY",
"7": "B-COUNTRY",
"8": "I-COUNTRY",
"9": "B-DATE",
"10": "I-DATE",
"11": "B-DEVICE",
"12": "I-DEVICE",
"13": "B-DOCTOR",
"14": "I-DOCTOR",
"15": "B-EMAIL",
"16": "I-EMAIL",
"17": "B-FAX",
"18": "I-FAX",
"19": "B-HEALTHPLAN",
"20": "I-HEALTHPLAN",
"21": "B-HOSPITAL",
"22": "I-HOSPITAL",
"23": "B-IDNUM",
"24": "I-IDNUM",
"25": "B-LOCATION-OTHER",
"26": "I-LOCATION-OTHER",
"27": "B-MEDICALRECORD",
"28": "I-MEDICALRECORD",
"29": "B-ORGANIZATION",
"30": "I-ORGANIZATION",
"31": "B-PATIENT",
"32": "I-PATIENT",
"33": "B-PHONE",
"34": "I-PHONE",
"35": "B-PROFESSION",
"36": "I-PROFESSION",
"37": "B-STATE",
"38": "I-STATE",
"39": "B-STREET",
"40": "I-STREET",
"41": "B-URL",
"42": "I-URL",
"43": "B-USERNAME",
"44": "I-USERNAME",
"45": "B-ZIP",
"46": "I-ZIP"
},
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"B-AGE": 1,
"B-BIOID": 3,
"B-CITY": 5,
"B-COUNTRY": 7,
"B-DATE": 9,
"B-DEVICE": 11,
"B-DOCTOR": 13,
"B-EMAIL": 15,
"B-FAX": 17,
"B-HEALTHPLAN": 19,
"B-HOSPITAL": 21,
"B-IDNUM": 23,
"B-LOCATION-OTHER": 25,
"B-MEDICALRECORD": 27,
"B-ORGANIZATION": 29,
"B-PATIENT": 31,
"B-PHONE": 33,
"B-PROFESSION": 35,
"B-STATE": 37,
"B-STREET": 39,
"B-URL": 41,
"B-USERNAME": 43,
"B-ZIP": 45,
"I-AGE": 2,
"I-BIOID": 4,
"I-CITY": 6,
"I-COUNTRY": 8,
"I-DATE": 10,
"I-DEVICE": 12,
"I-DOCTOR": 14,
"I-EMAIL": 16,
"I-FAX": 18,
"I-HEALTHPLAN": 20,
"I-HOSPITAL": 22,
"I-IDNUM": 24,
"I-LOCATION-OTHER": 26,
"I-MEDICALRECORD": 28,
"I-ORGANIZATION": 30,
"I-PATIENT": 32,
"I-PHONE": 34,
"I-PROFESSION": 36,
"I-STATE": 38,
"I-STREET": 40,
"I-URL": 42,
"I-USERNAME": 44,
"I-ZIP": 46,
"O": 0
},
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"torch_dtype": "float32",
"transformers_version": "4.10.0",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 28996
}