roberta-large-bc5cdr / config.json
asahi417's picture
add model
fabdc97
{
"_name_or_path": "roberta-large-bc5cdr",
"adapters": {
"adapters": {},
"config_map": {},
"fusion_config_map": {},
"fusions": {}
},
"architectures": [
"RobertaForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"classifier_dropout": null,
"crf_state_dict": {
"_constraint_mask": [
[
1.0,
1.0,
1.0,
0.0,
0.0,
0.0,
1.0
],
[
1.0,
1.0,
1.0,
0.0,
1.0,
0.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
0.0,
0.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
0.0,
0.0,
1.0
],
[
1.0,
1.0,
1.0,
0.0,
1.0,
0.0,
1.0
],
[
1.0,
1.0,
1.0,
0.0,
0.0,
0.0,
0.0
],
[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
],
"end_transitions": [
1.1829675436019897,
0.338004469871521,
1.610476016998291,
-2.1025612354278564,
0.026044141501188278
],
"start_transitions": [
0.23535622656345367,
-0.5871618390083313,
-0.908195972442627,
1.289412021636963,
0.7491621971130371
],
"transitions": [
[
0.08883310854434967,
-0.34687548875808716,
-0.5557966232299805,
-0.6514758467674255,
-0.32734575867652893
],
[
-0.020529085770249367,
-1.1056996583938599,
-0.6824190020561218,
0.38456156849861145,
-0.19291424751281738
],
[
-0.6466730237007141,
-0.2793288826942444,
-0.8555130958557129,
0.10881402343511581,
0.8075306415557861
],
[
-0.09906835854053497,
-0.14599257707595825,
0.10467313230037689,
-0.26882439851760864,
-0.12745390832424164
],
[
0.11021356284618378,
-0.1971757709980011,
0.632551372051239,
0.9238606095314026,
-0.20630259811878204
]
]
},
"eos_token_id": 2,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 1024,
"id2label": {
"0": "O",
"1": "B-Chemical",
"2": "B-Disease",
"3": "I-Disease",
"4": "I-Chemical"
},
"initializer_range": 0.02,
"intermediate_size": 4096,
"label2id": {
"B-Chemical": 1,
"B-Disease": 2,
"I-Chemical": 4,
"I-Disease": 3,
"O": 0
},
"layer_norm_eps": 1e-05,
"max_position_embeddings": 514,
"model_type": "roberta",
"num_attention_heads": 16,
"num_hidden_layers": 24,
"pad_token_id": 1,
"position_embedding_type": "absolute",
"torch_dtype": "float32",
"transformers_version": "4.11.3",
"type_vocab_size": 1,
"use_cache": true,
"vocab_size": 50265
}