ikuyamada's picture
add id2label and label2id to config.json
eb1d041
{
"architectures": [
"LukeForEntitySpanClassification"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"entity_emb_size": 256,
"entity_vocab_size": 500000,
"eos_token_id": 2,
"gradient_checkpointing": false,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 1024,
"id2label": {
"0": "NIL",
"1": "MISC",
"2": "PER",
"3": "ORG",
"4": "LOC"
},
"initializer_range": 0.02,
"intermediate_size": 4096,
"label2id": {
"LOC": 4,
"MISC": 1,
"NIL": 0,
"ORG": 3,
"PER": 2
},
"layer_norm_eps": 1e-05,
"max_position_embeddings": 514,
"model_type": "luke",
"num_attention_heads": 16,
"num_hidden_layers": 24,
"output_past": true,
"pad_token_id": 1,
"transformers_version": "4.6.0.dev0",
"type_vocab_size": 1,
"use_entity_aware_attention": true,
"vocab_size": 50267
}