bert-base-intent-classification-cs-th
Browse files- README.md +74 -65
- config.json +50 -51
- model.safetensors +2 -2
- training_args.bin +1 -1
README.md
CHANGED
@@ -1,35 +1,44 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
3 |
tags:
|
4 |
- generated_from_trainer
|
5 |
-
base_model: google-bert/bert-base-multilingual-cased
|
6 |
metrics:
|
7 |
- accuracy
|
8 |
- f1
|
9 |
- precision
|
10 |
- recall
|
11 |
model-index:
|
12 |
-
- name: bert-base-
|
13 |
results: []
|
14 |
-
datasets:
|
15 |
-
- Porameht/customer-support-th-26.9k
|
16 |
-
language:
|
17 |
-
- th
|
18 |
-
pipeline_tag: text-classification
|
19 |
---
|
20 |
|
21 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
22 |
should probably proofread and complete it, then remove this comment. -->
|
23 |
|
24 |
-
# bert-base-
|
25 |
|
26 |
-
This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on an
|
27 |
It achieves the following results on the evaluation set:
|
28 |
-
- Loss: 0.
|
29 |
-
- Accuracy: 0.
|
30 |
-
- F1: 0.
|
31 |
-
- Precision: 0.
|
32 |
-
- Recall: 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
### Training hyperparameters
|
35 |
|
@@ -48,56 +57,56 @@ The following hyperparameters were used during training:
|
|
48 |
|
49 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
50 |
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
51 |
-
| 3.
|
52 |
-
| 2.
|
53 |
-
| 1.
|
54 |
-
| 0.
|
55 |
-
| 0.
|
56 |
-
| 0.
|
57 |
-
| 0.
|
58 |
-
| 0.
|
59 |
-
| 0.
|
60 |
-
| 0.
|
61 |
-
| 0.
|
62 |
-
| 0.
|
63 |
-
| 0.
|
64 |
-
| 0.
|
65 |
-
| 0.
|
66 |
-
| 0.
|
67 |
-
| 0.
|
68 |
-
| 0.
|
69 |
-
| 0.
|
70 |
-
| 0.
|
71 |
-
| 0.
|
72 |
-
| 0.
|
73 |
-
| 0.
|
74 |
-
| 0.
|
75 |
-
| 0.
|
76 |
-
| 0.
|
77 |
-
| 0.
|
78 |
-
| 0.
|
79 |
-
| 0.
|
80 |
-
| 0.
|
81 |
-
| 0.
|
82 |
-
| 0.
|
83 |
-
| 0.
|
84 |
-
| 0.
|
85 |
-
| 0.
|
86 |
-
| 0.
|
87 |
-
| 0.
|
88 |
-
| 0.
|
89 |
-
| 0.
|
90 |
-
| 0.
|
91 |
-
| 0.
|
92 |
-
| 0.
|
93 |
-
| 0.
|
94 |
-
| 0.
|
95 |
-
| 0.
|
96 |
-
| 0.
|
97 |
-
| 0.
|
98 |
-
| 0.
|
99 |
-
| 0.
|
100 |
-
| 0.
|
101 |
|
102 |
|
103 |
### Framework versions
|
@@ -105,4 +114,4 @@ The following hyperparameters were used during training:
|
|
105 |
- Transformers 4.40.1
|
106 |
- Pytorch 2.2.1+cu121
|
107 |
- Datasets 2.19.1
|
108 |
-
- Tokenizers 0.19.1
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
base_model: google-bert/bert-base-multilingual-cased
|
4 |
tags:
|
5 |
- generated_from_trainer
|
|
|
6 |
metrics:
|
7 |
- accuracy
|
8 |
- f1
|
9 |
- precision
|
10 |
- recall
|
11 |
model-index:
|
12 |
+
- name: bert-base-intent-classification-cs-th
|
13 |
results: []
|
|
|
|
|
|
|
|
|
|
|
14 |
---
|
15 |
|
16 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
should probably proofread and complete it, then remove this comment. -->
|
18 |
|
19 |
+
# bert-base-intent-classification-cs-th
|
20 |
|
21 |
+
This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on an unknown dataset.
|
22 |
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.0408
|
24 |
+
- Accuracy: 0.9936
|
25 |
+
- F1: 0.9936
|
26 |
+
- Precision: 0.9937
|
27 |
+
- Recall: 0.9936
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
|
43 |
### Training hyperparameters
|
44 |
|
|
|
57 |
|
58 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
59 |
|:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
60 |
+
| 3.2835 | 0.0595 | 50 | 3.1041 | 0.1203 | 0.0504 | 0.0632 | 0.1210 |
|
61 |
+
| 2.6752 | 0.1190 | 100 | 1.9646 | 0.5387 | 0.4737 | 0.6298 | 0.5426 |
|
62 |
+
| 1.4751 | 0.1786 | 150 | 0.9447 | 0.8190 | 0.7929 | 0.8271 | 0.8188 |
|
63 |
+
| 0.7571 | 0.2381 | 200 | 0.5163 | 0.8952 | 0.8826 | 0.8812 | 0.8955 |
|
64 |
+
| 0.4849 | 0.2976 | 250 | 0.3539 | 0.9003 | 0.8905 | 0.8926 | 0.9021 |
|
65 |
+
| 0.3401 | 0.3571 | 300 | 0.2883 | 0.9160 | 0.9037 | 0.9012 | 0.9165 |
|
66 |
+
| 0.2533 | 0.4167 | 350 | 0.1735 | 0.9431 | 0.9322 | 0.9266 | 0.9443 |
|
67 |
+
| 0.177 | 0.4762 | 400 | 0.1326 | 0.9665 | 0.9670 | 0.9676 | 0.9671 |
|
68 |
+
| 0.119 | 0.5357 | 450 | 0.1527 | 0.9592 | 0.9582 | 0.9699 | 0.9600 |
|
69 |
+
| 0.1183 | 0.5952 | 500 | 0.0886 | 0.9839 | 0.9841 | 0.9841 | 0.9842 |
|
70 |
+
| 0.1065 | 0.6548 | 550 | 0.0829 | 0.9844 | 0.9844 | 0.9847 | 0.9844 |
|
71 |
+
| 0.1006 | 0.7143 | 600 | 0.0686 | 0.9869 | 0.9869 | 0.9872 | 0.9869 |
|
72 |
+
| 0.1096 | 0.7738 | 650 | 0.1071 | 0.9789 | 0.9791 | 0.9800 | 0.9788 |
|
73 |
+
| 0.1392 | 0.8333 | 700 | 0.0939 | 0.9804 | 0.9804 | 0.9808 | 0.9803 |
|
74 |
+
| 0.1067 | 0.8929 | 750 | 0.1077 | 0.9786 | 0.9790 | 0.9802 | 0.9786 |
|
75 |
+
| 0.0779 | 0.9524 | 800 | 0.0657 | 0.9878 | 0.9878 | 0.9879 | 0.9879 |
|
76 |
+
| 0.0626 | 1.0119 | 850 | 0.0750 | 0.9851 | 0.9853 | 0.9856 | 0.9852 |
|
77 |
+
| 0.0419 | 1.0714 | 900 | 0.0641 | 0.9893 | 0.9893 | 0.9895 | 0.9893 |
|
78 |
+
| 0.0373 | 1.1310 | 950 | 0.0664 | 0.9891 | 0.9891 | 0.9893 | 0.9890 |
|
79 |
+
| 0.035 | 1.1905 | 1000 | 0.0575 | 0.9906 | 0.9906 | 0.9907 | 0.9906 |
|
80 |
+
| 0.036 | 1.25 | 1050 | 0.0601 | 0.9891 | 0.9893 | 0.9895 | 0.9892 |
|
81 |
+
| 0.0765 | 1.3095 | 1100 | 0.0682 | 0.9875 | 0.9875 | 0.9877 | 0.9874 |
|
82 |
+
| 0.0637 | 1.3690 | 1150 | 0.0587 | 0.9906 | 0.9906 | 0.9908 | 0.9906 |
|
83 |
+
| 0.0241 | 1.4286 | 1200 | 0.0528 | 0.9906 | 0.9907 | 0.9909 | 0.9905 |
|
84 |
+
| 0.0608 | 1.4881 | 1250 | 0.0458 | 0.9920 | 0.9920 | 0.9922 | 0.9919 |
|
85 |
+
| 0.0199 | 1.5476 | 1300 | 0.0508 | 0.9914 | 0.9914 | 0.9915 | 0.9914 |
|
86 |
+
| 0.0663 | 1.6071 | 1350 | 0.0461 | 0.9911 | 0.9910 | 0.9911 | 0.9910 |
|
87 |
+
| 0.0495 | 1.6667 | 1400 | 0.0525 | 0.9906 | 0.9907 | 0.9908 | 0.9906 |
|
88 |
+
| 0.0336 | 1.7262 | 1450 | 0.0478 | 0.9915 | 0.9916 | 0.9917 | 0.9915 |
|
89 |
+
| 0.0249 | 1.7857 | 1500 | 0.0578 | 0.9891 | 0.9891 | 0.9892 | 0.9891 |
|
90 |
+
| 0.0287 | 1.8452 | 1550 | 0.0547 | 0.9908 | 0.9908 | 0.9909 | 0.9908 |
|
91 |
+
| 0.0607 | 1.9048 | 1600 | 0.0395 | 0.9929 | 0.9929 | 0.9930 | 0.9928 |
|
92 |
+
| 0.0268 | 1.9643 | 1650 | 0.0529 | 0.9897 | 0.9898 | 0.9902 | 0.9897 |
|
93 |
+
| 0.013 | 2.0238 | 1700 | 0.0455 | 0.9924 | 0.9925 | 0.9926 | 0.9925 |
|
94 |
+
| 0.0106 | 2.0833 | 1750 | 0.0419 | 0.9927 | 0.9928 | 0.9928 | 0.9927 |
|
95 |
+
| 0.007 | 2.1429 | 1800 | 0.0461 | 0.9920 | 0.9920 | 0.9921 | 0.9919 |
|
96 |
+
| 0.0502 | 2.2024 | 1850 | 0.0433 | 0.9929 | 0.9929 | 0.9930 | 0.9929 |
|
97 |
+
| 0.017 | 2.2619 | 1900 | 0.0440 | 0.9926 | 0.9926 | 0.9927 | 0.9926 |
|
98 |
+
| 0.0119 | 2.3214 | 1950 | 0.0403 | 0.9927 | 0.9928 | 0.9928 | 0.9927 |
|
99 |
+
| 0.0063 | 2.3810 | 2000 | 0.0391 | 0.9930 | 0.9930 | 0.9931 | 0.9930 |
|
100 |
+
| 0.0103 | 2.4405 | 2050 | 0.0412 | 0.9929 | 0.9929 | 0.9930 | 0.9929 |
|
101 |
+
| 0.012 | 2.5 | 2100 | 0.0420 | 0.9929 | 0.9929 | 0.9930 | 0.9929 |
|
102 |
+
| 0.0233 | 2.5595 | 2150 | 0.0407 | 0.9927 | 0.9928 | 0.9928 | 0.9928 |
|
103 |
+
| 0.0169 | 2.6190 | 2200 | 0.0397 | 0.9930 | 0.9930 | 0.9931 | 0.9930 |
|
104 |
+
| 0.0281 | 2.6786 | 2250 | 0.0367 | 0.9933 | 0.9933 | 0.9934 | 0.9933 |
|
105 |
+
| 0.0117 | 2.7381 | 2300 | 0.0360 | 0.9933 | 0.9933 | 0.9934 | 0.9933 |
|
106 |
+
| 0.0225 | 2.7976 | 2350 | 0.0354 | 0.9936 | 0.9936 | 0.9937 | 0.9936 |
|
107 |
+
| 0.0078 | 2.8571 | 2400 | 0.0357 | 0.9936 | 0.9936 | 0.9937 | 0.9936 |
|
108 |
+
| 0.0164 | 2.9167 | 2450 | 0.0346 | 0.9939 | 0.9939 | 0.9940 | 0.9939 |
|
109 |
+
| 0.0016 | 2.9762 | 2500 | 0.0345 | 0.9939 | 0.9939 | 0.9940 | 0.9939 |
|
110 |
|
111 |
|
112 |
### Framework versions
|
|
|
114 |
- Transformers 4.40.1
|
115 |
- Pytorch 2.2.1+cu121
|
116 |
- Datasets 2.19.1
|
117 |
+
- Tokenizers 0.19.1
|
config.json
CHANGED
@@ -10,65 +10,64 @@
|
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 768,
|
12 |
"id2label": {
|
13 |
-
"0": "
|
14 |
-
"1": "
|
15 |
-
"2": "
|
16 |
"3": "contact_customer_service",
|
17 |
-
"4": "
|
18 |
-
"5": "
|
19 |
-
"6": "
|
20 |
-
"7": "
|
21 |
-
"8": "
|
22 |
"9": "check_refund_policy",
|
23 |
-
"10": "
|
24 |
-
"11": "
|
25 |
-
"12": "
|
26 |
-
"13": "
|
27 |
-
"14": "
|
28 |
-
"15": "
|
29 |
-
"16": "
|
30 |
-
"17": "
|
31 |
-
"18": "
|
32 |
-
"19": "
|
33 |
-
"20": "
|
34 |
-
"21": "
|
35 |
-
"22": "
|
36 |
-
"23": "
|
37 |
-
"24": "
|
38 |
-
"25": "
|
39 |
-
"26": "
|
40 |
-
"27": "cancel_order"
|
41 |
},
|
42 |
"initializer_range": 0.02,
|
43 |
"intermediate_size": 3072,
|
44 |
"label2id": {
|
45 |
-
"cancel_order":
|
46 |
-
"change_order":
|
47 |
-
"change_shipping_address":
|
48 |
-
"check_cancellation_fee":
|
49 |
-
"check_invoice":
|
50 |
-
"check_payment_methods":
|
51 |
"check_refund_policy": 9,
|
52 |
-
"complaint":
|
53 |
"contact_customer_service": 3,
|
54 |
-
"contact_human_agent":
|
55 |
-
"create_account":
|
56 |
-
"delete_account":
|
57 |
-
"delivery_options":
|
58 |
-
"delivery_period":
|
59 |
-
"edit_account":
|
60 |
-
"get_invoice":
|
61 |
-
"get_refund":
|
62 |
-
"newsletter_subscription":
|
63 |
-
"payment_issue":
|
64 |
-
"place_order":
|
65 |
-
"recover_password":
|
66 |
-
"registration_problems":
|
67 |
-
"review":
|
68 |
-
"set_up_shipping_address":
|
69 |
-
"switch_account":
|
70 |
-
"track_order":
|
71 |
-
"track_refund":
|
72 |
},
|
73 |
"layer_norm_eps": 1e-12,
|
74 |
"max_position_embeddings": 512,
|
|
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 768,
|
12 |
"id2label": {
|
13 |
+
"0": "create_account",
|
14 |
+
"1": "review",
|
15 |
+
"2": "change_shipping_address",
|
16 |
"3": "contact_customer_service",
|
17 |
+
"4": "contact_human_agent",
|
18 |
+
"5": "check_payment_methods",
|
19 |
+
"6": "set_up_shipping_address",
|
20 |
+
"7": "delete_account",
|
21 |
+
"8": "newsletter_subscription",
|
22 |
"9": "check_refund_policy",
|
23 |
+
"10": "change_order",
|
24 |
+
"11": "track_refund",
|
25 |
+
"12": "payment_issue",
|
26 |
+
"13": "get_invoice",
|
27 |
+
"14": "track_order",
|
28 |
+
"15": "cancel_order",
|
29 |
+
"16": "complaint",
|
30 |
+
"17": "delivery_options",
|
31 |
+
"18": "recover_password",
|
32 |
+
"19": "check_invoice",
|
33 |
+
"20": "get_refund",
|
34 |
+
"21": "registration_problems",
|
35 |
+
"22": "place_order",
|
36 |
+
"23": "edit_account",
|
37 |
+
"24": "delivery_period",
|
38 |
+
"25": "check_cancellation_fee",
|
39 |
+
"26": "switch_account"
|
|
|
40 |
},
|
41 |
"initializer_range": 0.02,
|
42 |
"intermediate_size": 3072,
|
43 |
"label2id": {
|
44 |
+
"cancel_order": 15,
|
45 |
+
"change_order": 10,
|
46 |
+
"change_shipping_address": 2,
|
47 |
+
"check_cancellation_fee": 25,
|
48 |
+
"check_invoice": 19,
|
49 |
+
"check_payment_methods": 5,
|
50 |
"check_refund_policy": 9,
|
51 |
+
"complaint": 16,
|
52 |
"contact_customer_service": 3,
|
53 |
+
"contact_human_agent": 4,
|
54 |
+
"create_account": 0,
|
55 |
+
"delete_account": 7,
|
56 |
+
"delivery_options": 17,
|
57 |
+
"delivery_period": 24,
|
58 |
+
"edit_account": 23,
|
59 |
+
"get_invoice": 13,
|
60 |
+
"get_refund": 20,
|
61 |
+
"newsletter_subscription": 8,
|
62 |
+
"payment_issue": 12,
|
63 |
+
"place_order": 22,
|
64 |
+
"recover_password": 18,
|
65 |
+
"registration_problems": 21,
|
66 |
+
"review": 1,
|
67 |
+
"set_up_shipping_address": 6,
|
68 |
+
"switch_account": 26,
|
69 |
+
"track_order": 14,
|
70 |
+
"track_refund": 11
|
71 |
},
|
72 |
"layer_norm_eps": 1e-12,
|
73 |
"max_position_embeddings": 512,
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c931d7ea2a54ba0055001f602f5415c0038975bb5b2dacab3db314c831de8a69
|
3 |
+
size 711520364
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4984
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6fea6bc200627f24de74e9d30642e6bdb4f4617636c1586b85127fb98d22fd50
|
3 |
size 4984
|