5roop commited on
Commit
b87fcd9
·
1 Parent(s): 5e49e36

Created model card.

Browse files
Files changed (1) hide show
  1. README.md +39 -0
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # sloberta-frenk-hate
2
+ Text classification model based on `EMBEDDIA/sloberta` and fine-tuned on the [FRANK dataset](https://www.clarin.si/repository/xmlui/handle/11356/1433) comprising of LGBT and migrant hatespeech. Only the slovenian subset of the data was used for fine-tuning and the dataset has been relabeled for binary classification (offensive or acceptable).
3
+
4
+ ## Fine-tuning hyperparameters
5
+
6
+ Fine-tuning was performed with `simpletransformers`. Beforehand a brief hyperparameter optimisation was performed and the presumed optimal hyperparameters are:
7
+ ```python
8
+ model_args = {
9
+ "num_train_epochs": 14,
10
+ "learning_rate": 1e-5,
11
+ "train_batch_size": 21,
12
+ }
13
+ ```
14
+
15
+ ## Performance
16
+
17
+ The same pipeline was run with two other models and with the same dataset. Accuracy and macro F1 score were recorded for each of the 6 fine-tuning sessions and post festum analyzed.
18
+
19
+ | model | average accuracy | average macro F1|
20
+ |---|---|---|
21
+ |sloberta-frenk-hate|0.7785|0.7764|
22
+ |EMBEDDIA/crosloengual-bert |0.7616|0.7585|
23
+ |xlm-roberta-base |0.686|0.6827|
24
+
25
+ From recorded accuracies and macro F1 scores p-values were also calculated:
26
+
27
+ `Sloberta` vs `crosloengual-bert`:
28
+ | test | accuracy p-value | macro F1 p-value|
29
+ | --- | --- | --- |
30
+ |Wilcoxon|0.00781|0.00781|
31
+ |Mann Whithey|0.00163|0.00108|
32
+ |Student t-test |0.000101|3.95e-05|
33
+
34
+ `Sloberta` vs `xlm-roberta-base`:
35
+ | test | accuracy p-value | macro F1 p-value|
36
+ | --- | --- | --- |
37
+ |Wilcoxon|0.00781|0.00781|
38
+ |Mann Whithey|0.00108|0.00108|
39
+ |Student t-test |9.46e-11|6.94e-11|