Az-r-ow commited on
Commit
259e417
·
verified ·
1 Parent(s): 05feb2a

Upload TFCamembertForTokenClassification

Browse files
Files changed (3) hide show
  1. README.md +61 -0
  2. config.json +37 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: camembert-base
5
+ tags:
6
+ - generated_from_keras_callback
7
+ model-index:
8
+ - name: CamemBERT-NER-Travel
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
13
+ probably proofread and complete it, then remove this comment. -->
14
+
15
+ # CamemBERT-NER-Travel
16
+
17
+ This model is a fine-tuned version of [camembert-base](https://huggingface.co/camembert-base) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Train Loss: 0.0016
20
+ - Train Accuracy: 0.9923
21
+ - Train Entity Accuracy: 0.9789
22
+ - Validation Loss: 0.0017
23
+ - Validation Accuracy: 0.9920
24
+ - Validation Entity Accuracy: 0.9831
25
+ - Epoch: 3
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - optimizer: {'name': 'Adam', 'learning_rate': 5e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
45
+ - training_precision: float32
46
+
47
+ ### Training results
48
+
49
+ | Train Loss | Train Accuracy | Train Entity Accuracy | Validation Loss | Validation Accuracy | Validation Entity Accuracy | Epoch |
50
+ |:----------:|:--------------:|:---------------------:|:---------------:|:-------------------:|:--------------------------:|:-----:|
51
+ | 0.0124 | 0.9677 | 0.8099 | 0.0038 | 0.9799 | 0.9682 | 0 |
52
+ | 0.0031 | 0.9852 | 0.9684 | 0.0019 | 0.9885 | 0.9820 | 1 |
53
+ | 0.0020 | 0.9907 | 0.9767 | 0.0016 | 0.9941 | 0.9775 | 2 |
54
+ | 0.0016 | 0.9923 | 0.9789 | 0.0017 | 0.9920 | 0.9831 | 3 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.46.3
60
+ - TensorFlow 2.18.0
61
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "camembert-base",
3
+ "architectures": [
4
+ "CamembertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 5,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 6,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "LABEL_0": 0,
22
+ "LABEL_1": 1,
23
+ "LABEL_2": 2
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "camembert",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "output_past": true,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "transformers_version": "4.46.3",
34
+ "type_vocab_size": 1,
35
+ "use_cache": true,
36
+ "vocab_size": 32005
37
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db4c48a64dfdc92feaaadb28be81263afc11b6195abc5b7fcf9055c6e7d2217a
3
+ size 440422480