nb-bert-base-ner / config.json
Rolv-Arild's picture
Update config.json
2dc0b66
{
"_name_or_path": "./v2_evals/checkpoints/T6_noTram2_BERT_norwegian_cased_3.8m",
"architectures": [
"BertForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"directionality": "bidi",
"finetuning_task": "ner",
"gradient_checkpointing": "false",
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "O",
"1": "B-PER",
"2": "I-PER",
"3": "B-ORG",
"4": "I-ORG",
"5": "B-GPE_LOC",
"6": "I-GPE_LOC",
"7": "B-PROD",
"8": "I-PROD",
"9": "B-LOC",
"10": "I-LOC",
"11": "B-GPE_ORG",
"12": "I-GPE_ORG",
"13": "B-DRV",
"14": "I-DRV",
"15": "B-EVT",
"16": "I-EVT",
"17": "B-MISC",
"18": "I-MISC"
},
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"O": 0,
"B-PER": 1,
"I-PER": 2,
"B-ORG": 3,
"I-ORG": 4,
"B-GPE_LOC": 5,
"I-GPE_LOC": 6,
"B-PROD": 7,
"I-PROD": 8,
"B-LOC": 9,
"I-LOC": 10,
"B-GPE_ORG": 11,
"I-GPE_ORG": 12,
"B-DRV": 13,
"I-DRV": 14,
"B-EVT": 15,
"I-EVT": 16,
"B-MISC": 17,
"I-MISC": 18
},
"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.9.2",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 50000
}