SeyedAli commited on
Commit
8b99f3a
1 Parent(s): 5b5d3d7

SeyedAli/Persian-Text-Emotion-Bert-V1

Browse files
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: HooshvareLab/bert-base-parsbert-uncased
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - precision
7
+ - recall
8
+ - accuracy
9
+ model-index:
10
+ - name: output
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # output
18
+
19
+ This model is a fine-tuned version of [HooshvareLab/bert-base-parsbert-uncased](https://huggingface.co/HooshvareLab/bert-base-parsbert-uncased) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.2551
22
+ - Precision: 0.9362
23
+ - Recall: 0.9360
24
+ - Fscore: 0.9359
25
+ - Accuracy: 0.9360
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
+ - learning_rate: 2e-05
45
+ - train_batch_size: 16
46
+ - eval_batch_size: 16
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 10
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | Fscore | Accuracy |
55
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
56
+ | No log | 1.0 | 348 | 0.3054 | 0.9166 | 0.9144 | 0.9136 | 0.9144 |
57
+ | 0.5158 | 2.0 | 696 | 0.2551 | 0.9362 | 0.9360 | 0.9359 | 0.9360 |
58
+ | 0.1469 | 3.0 | 1044 | 0.3670 | 0.9283 | 0.9259 | 0.9245 | 0.9259 |
59
+ | 0.1469 | 4.0 | 1392 | 0.3833 | 0.9331 | 0.9317 | 0.9307 | 0.9317 |
60
+ | 0.0453 | 5.0 | 1740 | 0.4241 | 0.9356 | 0.9345 | 0.9342 | 0.9345 |
61
+ | 0.0237 | 6.0 | 2088 | 0.3750 | 0.9441 | 0.9439 | 0.9437 | 0.9439 |
62
+ | 0.0237 | 7.0 | 2436 | 0.3986 | 0.9389 | 0.9388 | 0.9385 | 0.9388 |
63
+ | 0.009 | 8.0 | 2784 | 0.4100 | 0.9407 | 0.9403 | 0.9397 | 0.9403 |
64
+ | 0.0053 | 9.0 | 3132 | 0.4005 | 0.9403 | 0.9403 | 0.9401 | 0.9403 |
65
+ | 0.0053 | 10.0 | 3480 | 0.3986 | 0.9410 | 0.9410 | 0.9408 | 0.9410 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.33.1
71
+ - Pytorch 2.0.1+cu118
72
+ - Datasets 2.14.5
73
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "HooshvareLab/bert-base-parsbert-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
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": "joy",
13
+ "1": "sad",
14
+ "2": "anger",
15
+ "3": "disgust",
16
+ "4": "fear",
17
+ "5": "surprise"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "anger": 2,
23
+ "disgust": 3,
24
+ "fear": 4,
25
+ "joy": 0,
26
+ "sad": 1,
27
+ "surprise": 5
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "pad_token_id": 0,
35
+ "position_embedding_type": "absolute",
36
+ "problem_type": "single_label_classification",
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.33.1",
39
+ "type_vocab_size": 2,
40
+ "use_cache": true,
41
+ "vocab_size": 100000
42
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9363a6872555b2d0f1dc15ae45ce5763f91043a980b658319f739b72bd00eb22
3
+ size 651452209
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_special_tokens": true,
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "do_basic_tokenize": true,
6
+ "do_lower_case": true,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 100,
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "strip_accents": null,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:372a6f03682e8c43939d1fb9de880a46b0c2aaf79330ec7929610a250d4fe699
3
+ size 4027
vocab.txt ADDED
The diff for this file is too large to render. See raw diff