chinese-medical-ner / config.json
lixin12345's picture
Upload config.json
d787821 verified
{
"_name_or_path": "google-bert/bert-base-chinese",
"architectures": [
"BertForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
"directionality": "bidi",
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "O",
"1": "B-DiseaseNameOrComprehensiveCertificate",
"2": "I-DiseaseNameOrComprehensiveCertificate",
"3": "B-InspectionProcedure",
"4": "I-InspectionProcedure",
"5": "B-Drug",
"6": "I-Drug",
"7": "B-TreatmentEquipment",
"8": "I-TreatmentEquipment",
"9": "B-Symptom",
"10": "I-Symptom",
"11": "B-Department",
"12": "I-Department",
"13": "B-TreatmentOrPreventionProcedures",
"14": "I-TreatmentOrPreventionProcedures",
"15": "B-Sign",
"16": "I-Sign",
"17": "B-OrganOrCellDamage",
"18": "I-OrganOrCellDamage",
"19": "B-BodyParts",
"20": "I-BodyParts",
"21": "B-MedicalTestingItems",
"22": "I-MedicalTestingItems",
"23": "B-InjuryOrPoisoning",
"24": "I-InjuryOrPoisoning",
"25": "B-Microbiology",
"26": "I-Microbiology",
"27": "B-MedicalProcedures",
"28": "I-MedicalProcedures",
"29": "B-InspectEquipment",
"30": "I-InspectEquipment"
},
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"B-BodyParts": 19,
"B-Department": 11,
"B-DiseaseNameOrComprehensiveCertificate": 1,
"B-Drug": 5,
"B-InjuryOrPoisoning": 23,
"B-InspectEquipment": 29,
"B-InspectionProcedure": 3,
"B-MedicalProcedures": 27,
"B-MedicalTestingItems": 21,
"B-Microbiology": 25,
"B-OrganOrCellDamage": 17,
"B-Sign": 15,
"B-Symptom": 9,
"B-TreatmentEquipment": 7,
"B-TreatmentOrPreventionProcedures": 13,
"I-BodyParts": 20,
"I-Department": 12,
"I-DiseaseNameOrComprehensiveCertificate": 2,
"I-Drug": 6,
"I-InjuryOrPoisoning": 24,
"I-InspectEquipment": 30,
"I-InspectionProcedure": 4,
"I-MedicalProcedures": 28,
"I-MedicalTestingItems": 22,
"I-Microbiology": 26,
"I-OrganOrCellDamage": 18,
"I-Sign": 16,
"I-Symptom": 10,
"I-TreatmentEquipment": 8,
"I-TreatmentOrPreventionProcedures": 14,
"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,
"pooler_fc_size": 768,
"pooler_num_attention_heads": 12,
"pooler_num_fc_layers": 3,
"pooler_size_per_head": 128,
"pooler_type": "first_token_transform",
"position_embedding_type": "absolute",
"torch_dtype": "float32",
"transformers_version": "4.40.2",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 21128
}