hatmimoha commited on
Commit
dc7ddd9
โ€ข
1 Parent(s): fe2b668

Update config file

Browse files
Files changed (1) hide show
  1. config.json +45 -39
config.json CHANGED
@@ -1,55 +1,57 @@
1
  {
 
2
  "architectures": [
3
- "BertForTokenClassification"
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
 
6
  "gradient_checkpointing": false,
7
  "hidden_act": "gelu",
8
  "hidden_dropout_prob": 0.1,
9
  "hidden_size": 768,
10
  "id2label": {
11
- "0": "LABEL_0",
12
- "1": "LABEL_1",
13
- "2": "LABEL_2",
14
- "3": "LABEL_3",
15
- "4": "LABEL_4",
16
- "5": "LABEL_5",
17
- "6": "LABEL_6",
18
- "7": "LABEL_7",
19
- "8": "LABEL_8",
20
- "9": "LABEL_9",
21
- "10": "LABEL_10",
22
- "11": "LABEL_11",
23
- "12": "LABEL_12",
24
- "13": "LABEL_13",
25
- "14": "LABEL_14",
26
- "15": "LABEL_15",
27
- "16": "LABEL_16",
28
- "17": "LABEL_17",
29
- "18": "LABEL_18"
30
  },
31
  "initializer_range": 0.02,
32
  "intermediate_size": 3072,
33
  "label2id": {
34
- "LABEL_0": 0,
35
- "LABEL_1": 1,
36
- "LABEL_10": 10,
37
- "LABEL_11": 11,
38
- "LABEL_12": 12,
39
- "LABEL_13": 13,
40
- "LABEL_14": 14,
41
- "LABEL_15": 15,
42
- "LABEL_16": 16,
43
- "LABEL_17": 17,
44
- "LABEL_18": 18,
45
- "LABEL_2": 2,
46
- "LABEL_3": 3,
47
- "LABEL_4": 4,
48
- "LABEL_5": 5,
49
- "LABEL_6": 6,
50
- "LABEL_7": 7,
51
- "LABEL_8": 8,
52
- "LABEL_9": 9
53
  },
54
  "layer_norm_eps": 1e-12,
55
  "max_position_embeddings": 512,
@@ -58,6 +60,10 @@
58
  "num_hidden_layers": 12,
59
  "output_past": true,
60
  "pad_token_id": 0,
 
 
 
61
  "type_vocab_size": 2,
 
62
  "vocab_size": 32000
63
  }
 
1
  {
2
+ "_name_or_path": "hatmimoha/arabic-ner",
3
  "architectures": [
4
+ "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
  "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
+ "0": "O",
14
+ "1": "B-PERSON",
15
+ "2": "I-PERSON",
16
+ "3": "B-ORGANIZATION",
17
+ "4": "I-ORGANIZATION",
18
+ "5": "B-LOCATION",
19
+ "6": "I-LOCATION",
20
+ "7": "B-PRODUCT",
21
+ "8": "I-PRODUCT",
22
+ "9": "B-EVENT",
23
+ "10": "I-EVENT",
24
+ "11": "B-DATE",
25
+ "12": "I-DATE",
26
+ "13": "B-COMPETITION",
27
+ "14": "I-COMPETITION",
28
+ "15": "B-PRICE",
29
+ "16": "I-PRICE",
30
+ "17": "B-DISEASE",
31
+ "18": "I-DISEASE"
32
  },
33
  "initializer_range": 0.02,
34
  "intermediate_size": 3072,
35
  "label2id": {
36
+ "B-COMPETITION": 13,
37
+ "B-DATE": 11,
38
+ "B-DISEASE": 17,
39
+ "B-EVENT": 9,
40
+ "B-LOCATION": 5,
41
+ "B-ORGANIZATION": 3,
42
+ "B-PERSON": 1,
43
+ "B-PRICE": 15,
44
+ "B-PRODUCT": 7,
45
+ "I-COMPETITION": 14,
46
+ "I-DATE": 12,
47
+ "I-DISEASE": 18,
48
+ "I-EVENT": 10,
49
+ "I-LOCATION": 6,
50
+ "I-ORGANIZATION": 4,
51
+ "I-PERSON": 2,
52
+ "I-PRICE": 16,
53
+ "I-PRODUCT": 8,
54
+ "O": 0
55
  },
56
  "layer_norm_eps": 1e-12,
57
  "max_position_embeddings": 512,
 
60
  "num_hidden_layers": 12,
61
  "output_past": true,
62
  "pad_token_id": 0,
63
+ "position_embedding_type": "absolute",
64
+ "torch_dtype": "float32",
65
+ "transformers_version": "4.19.0.dev0",
66
  "type_vocab_size": 2,
67
+ "use_cache": true,
68
  "vocab_size": 32000
69
  }