Okyx commited on
Commit
774906c
·
1 Parent(s): 646befc

Upload TFBertForTokenClassification

Browse files
Files changed (3) hide show
  1. README.md +57 -0
  2. config.json +67 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: NERTESTINGCAROLINE
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
+ # NERTESTINGCAROLINE
14
+
15
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.0055
18
+ - Validation Loss: 0.0133
19
+ - Epoch: 4
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': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 6145, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, '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.0923 | 0.0283 | 0 |
46
+ | 0.0188 | 0.0164 | 1 |
47
+ | 0.0106 | 0.0143 | 2 |
48
+ | 0.0073 | 0.0132 | 3 |
49
+ | 0.0055 | 0.0133 | 4 |
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.25.1
55
+ - TensorFlow 2.9.2
56
+ - Datasets 2.8.0
57
+ - Tokenizers 0.13.2
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForTokenClassification"
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-Brand",
15
+ "10": "I-TM",
16
+ "11": "B-Color",
17
+ "12": "I-Color",
18
+ "13": "B-Tahun",
19
+ "14": "I-Tahun",
20
+ "15": "B-Lok",
21
+ "16": "I-Lok",
22
+ "17": "B-Fuel",
23
+ "18": "I-Fuel",
24
+ "2": "I-Brand",
25
+ "3": "B-Model",
26
+ "4": "I-Model",
27
+ "5": "B-Tipe",
28
+ "6": "I-Tipe",
29
+ "7": "B-CC",
30
+ "8": "I-CC",
31
+ "9": "B-TM"
32
+ },
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 3072,
35
+ "label2id": {
36
+ "B-Brand": "1",
37
+ "B-CC": "7",
38
+ "B-Color": "11",
39
+ "B-Fuel": "17",
40
+ "B-Lok": "15",
41
+ "B-Model": "3",
42
+ "B-TM": "9",
43
+ "B-Tahun": "13",
44
+ "B-Tipe": "5",
45
+ "I-Brand": "2",
46
+ "I-CC": "8",
47
+ "I-Color": "12",
48
+ "I-Fuel": "18",
49
+ "I-Lok": "16",
50
+ "I-Model": "4",
51
+ "I-TM": "10",
52
+ "I-Tahun": "14",
53
+ "I-Tipe": "6",
54
+ "O": "0"
55
+ },
56
+ "layer_norm_eps": 1e-12,
57
+ "max_position_embeddings": 512,
58
+ "model_type": "bert",
59
+ "num_attention_heads": 12,
60
+ "num_hidden_layers": 12,
61
+ "pad_token_id": 0,
62
+ "position_embedding_type": "absolute",
63
+ "transformers_version": "4.25.1",
64
+ "type_vocab_size": 2,
65
+ "use_cache": true,
66
+ "vocab_size": 28996
67
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b176469cb052d243afe3cb50a5b493a3ca0c47d291fc50cbdb7bdee6b5ba3ca
3
+ size 431210580