SeyedAli commited on
Commit
45c7744
1 Parent(s): 6d5281b

SeyedAli/Persian-Text-Emotion-Bert-V1

Browse files
README.md CHANGED
@@ -1,3 +1,73 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: Persian-Text-Sentiment-Bert-V1
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
+ # Persian-Text-Sentiment-Bert-V1
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.3265
22
+ - Precision: 0.8727
23
+ - Recall: 0.8716
24
+ - F1-score: 0.8715
25
+ - Accuracy: 0.8716
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 | F1-score | Accuracy |
55
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:--------:|:--------:|
56
+ | 0.3097 | 1.0 | 3491 | 0.3265 | 0.8727 | 0.8716 | 0.8715 | 0.8716 |
57
+ | 0.2686 | 2.0 | 6982 | 0.3602 | 0.8785 | 0.8758 | 0.8756 | 0.8758 |
58
+ | 0.2137 | 3.0 | 10473 | 0.3828 | 0.8759 | 0.8724 | 0.8721 | 0.8724 |
59
+ | 0.1823 | 4.0 | 13964 | 0.5545 | 0.8637 | 0.8636 | 0.8636 | 0.8636 |
60
+ | 0.1346 | 5.0 | 17455 | 0.6295 | 0.8572 | 0.8566 | 0.8566 | 0.8566 |
61
+ | 0.1001 | 6.0 | 20946 | 0.8501 | 0.8606 | 0.8604 | 0.8604 | 0.8604 |
62
+ | 0.071 | 7.0 | 24437 | 1.0192 | 0.8596 | 0.8594 | 0.8594 | 0.8594 |
63
+ | 0.0604 | 8.0 | 27928 | 1.0449 | 0.8553 | 0.8553 | 0.8553 | 0.8553 |
64
+ | 0.0312 | 9.0 | 31419 | 1.1677 | 0.8598 | 0.8598 | 0.8598 | 0.8598 |
65
+ | 0.022 | 10.0 | 34910 | 1.2128 | 0.8593 | 0.8591 | 0.8591 | 0.8591 |
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,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "negetive",
13
+ "1": "positive"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "negetive": 0,
19
+ "positive": 1
20
+ },
21
+ "layer_norm_eps": 1e-12,
22
+ "max_position_embeddings": 512,
23
+ "model_type": "bert",
24
+ "num_attention_heads": 12,
25
+ "num_hidden_layers": 12,
26
+ "pad_token_id": 0,
27
+ "position_embedding_type": "absolute",
28
+ "problem_type": "single_label_classification",
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.33.1",
31
+ "type_vocab_size": 2,
32
+ "use_cache": true,
33
+ "vocab_size": 100000
34
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:921d367303c18ac7c84ba18b88f1ea054713cfe4685d93eb47861bca57c81d16
3
+ size 651439921
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:e9ae79e9494d738ea96ac562af6b0f855a9abdf0e3674320c362bf5013b499b6
3
+ size 4091
vocab.txt ADDED
The diff for this file is too large to render. See raw diff