chosenone80
commited on
Commit
•
f07effe
1
Parent(s):
2a884a6
Training in progress epoch 0
Browse files- README.md +53 -0
- config.json +110 -0
- special_tokens_map.json +37 -0
- tf_model.h5 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +86 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: aubmindlab/bert-base-arabertv02
|
3 |
+
tags:
|
4 |
+
- generated_from_keras_callback
|
5 |
+
model-index:
|
6 |
+
- name: chosenone80/arabert-ner-test-1
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
11 |
+
probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# chosenone80/arabert-ner-test-1
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [aubmindlab/bert-base-arabertv02](https://huggingface.co/aubmindlab/bert-base-arabertv02) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Train Loss: 0.1961
|
18 |
+
- Validation Loss: 0.0515
|
19 |
+
- Epoch: 0
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 1695, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
39 |
+
- training_precision: mixed_float16
|
40 |
+
|
41 |
+
### Training results
|
42 |
+
|
43 |
+
| Train Loss | Validation Loss | Epoch |
|
44 |
+
|:----------:|:---------------:|:-----:|
|
45 |
+
| 0.1961 | 0.0515 | 0 |
|
46 |
+
|
47 |
+
|
48 |
+
### Framework versions
|
49 |
+
|
50 |
+
- Transformers 4.37.2
|
51 |
+
- TensorFlow 2.15.0
|
52 |
+
- Datasets 2.17.1
|
53 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "aubmindlab/bert-base-arabertv02",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "B-Allah",
|
13 |
+
"1": "I-Allah",
|
14 |
+
"2": "B-Book",
|
15 |
+
"3": "I-Book",
|
16 |
+
"4": "B-Clan",
|
17 |
+
"5": "I-Clan",
|
18 |
+
"6": "B-Crime",
|
19 |
+
"7": "I-Crime",
|
20 |
+
"8": "B-Date",
|
21 |
+
"9": "I-Date",
|
22 |
+
"10": "B-Day",
|
23 |
+
"11": "I-Day",
|
24 |
+
"12": "B-Hell",
|
25 |
+
"13": "I-Hell",
|
26 |
+
"14": "B-Loc",
|
27 |
+
"15": "I-Loc",
|
28 |
+
"16": "B-Meas",
|
29 |
+
"17": "I-Meas",
|
30 |
+
"18": "B-Mon",
|
31 |
+
"19": "I-Mon",
|
32 |
+
"20": "B-Month",
|
33 |
+
"21": "I-Month",
|
34 |
+
"22": "B-NatOb",
|
35 |
+
"23": "I-NatOb",
|
36 |
+
"24": "B-NUM",
|
37 |
+
"25": "I-NUM",
|
38 |
+
"26": "O",
|
39 |
+
"27": "B-Org",
|
40 |
+
"28": "I-Org",
|
41 |
+
"29": "B-Para",
|
42 |
+
"30": "I-Para",
|
43 |
+
"31": "B-Pers",
|
44 |
+
"32": "I-Pers",
|
45 |
+
"33": "B-Prophet",
|
46 |
+
"34": "I-Prophet",
|
47 |
+
"35": "B-Rlig",
|
48 |
+
"36": "I-Rlig",
|
49 |
+
"37": "B-Sect",
|
50 |
+
"38": "I-Sect",
|
51 |
+
"39": "B-Time",
|
52 |
+
"40": "I-Time"
|
53 |
+
},
|
54 |
+
"initializer_range": 0.02,
|
55 |
+
"intermediate_size": 3072,
|
56 |
+
"label2id": {
|
57 |
+
"B-Allah": 0,
|
58 |
+
"B-Book": 2,
|
59 |
+
"B-Clan": 4,
|
60 |
+
"B-Crime": 6,
|
61 |
+
"B-Date": 8,
|
62 |
+
"B-Day": 10,
|
63 |
+
"B-Hell": 12,
|
64 |
+
"B-Loc": 14,
|
65 |
+
"B-Meas": 16,
|
66 |
+
"B-Mon": 18,
|
67 |
+
"B-Month": 20,
|
68 |
+
"B-NUM": 24,
|
69 |
+
"B-NatOb": 22,
|
70 |
+
"B-Org": 27,
|
71 |
+
"B-Para": 29,
|
72 |
+
"B-Pers": 31,
|
73 |
+
"B-Prophet": 33,
|
74 |
+
"B-Rlig": 35,
|
75 |
+
"B-Sect": 37,
|
76 |
+
"B-Time": 39,
|
77 |
+
"I-Allah": 1,
|
78 |
+
"I-Book": 3,
|
79 |
+
"I-Clan": 5,
|
80 |
+
"I-Crime": 7,
|
81 |
+
"I-Date": 9,
|
82 |
+
"I-Day": 11,
|
83 |
+
"I-Hell": 13,
|
84 |
+
"I-Loc": 15,
|
85 |
+
"I-Meas": 17,
|
86 |
+
"I-Mon": 19,
|
87 |
+
"I-Month": 21,
|
88 |
+
"I-NUM": 25,
|
89 |
+
"I-NatOb": 23,
|
90 |
+
"I-Org": 28,
|
91 |
+
"I-Para": 30,
|
92 |
+
"I-Pers": 32,
|
93 |
+
"I-Prophet": 34,
|
94 |
+
"I-Rlig": 36,
|
95 |
+
"I-Sect": 38,
|
96 |
+
"I-Time": 40,
|
97 |
+
"O": 26
|
98 |
+
},
|
99 |
+
"layer_norm_eps": 1e-12,
|
100 |
+
"max_position_embeddings": 512,
|
101 |
+
"model_type": "bert",
|
102 |
+
"num_attention_heads": 12,
|
103 |
+
"num_hidden_layers": 12,
|
104 |
+
"pad_token_id": 0,
|
105 |
+
"position_embedding_type": "absolute",
|
106 |
+
"transformers_version": "4.37.2",
|
107 |
+
"type_vocab_size": 2,
|
108 |
+
"use_cache": true,
|
109 |
+
"vocab_size": 64000
|
110 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a2801378ee744dd2ad0b6a31ed7de9375b96241ea331e2e2736f4aefe27e9c11
|
3 |
+
size 538810476
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"4": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"5": {
|
44 |
+
"content": "[رابط]",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": true,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": true,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
"6": {
|
52 |
+
"content": "[بريد]",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": true,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": true,
|
57 |
+
"special": true
|
58 |
+
},
|
59 |
+
"7": {
|
60 |
+
"content": "[مستخدم]",
|
61 |
+
"lstrip": false,
|
62 |
+
"normalized": true,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": true,
|
65 |
+
"special": true
|
66 |
+
}
|
67 |
+
},
|
68 |
+
"clean_up_tokenization_spaces": true,
|
69 |
+
"cls_token": "[CLS]",
|
70 |
+
"do_basic_tokenize": true,
|
71 |
+
"do_lower_case": false,
|
72 |
+
"mask_token": "[MASK]",
|
73 |
+
"max_len": 512,
|
74 |
+
"model_max_length": 512,
|
75 |
+
"never_split": [
|
76 |
+
"[بريد]",
|
77 |
+
"[مستخدم]",
|
78 |
+
"[رابط]"
|
79 |
+
],
|
80 |
+
"pad_token": "[PAD]",
|
81 |
+
"sep_token": "[SEP]",
|
82 |
+
"strip_accents": null,
|
83 |
+
"tokenize_chinese_chars": true,
|
84 |
+
"tokenizer_class": "BertTokenizer",
|
85 |
+
"unk_token": "[UNK]"
|
86 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|