finiteautomata
commited on
Commit
•
8913cd6
1
Parent(s):
276c733
Hate speech model
Browse files- added_tokens.json +1 -0
- bpe.codes +0 -0
- config.json +40 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- test_results.json +21 -0
- tokenizer_config.json +1 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
added_tokens.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"<mask>": 64000}
|
bpe.codes
ADDED
The diff for this file is too large to render.
See raw diff
|
|
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "vinai/bertweet-base",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "hateful",
|
16 |
+
"1": "targeted",
|
17 |
+
"2": "aggressive"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"aggressive": 2,
|
23 |
+
"hateful": 0,
|
24 |
+
"targeted": 1
|
25 |
+
},
|
26 |
+
"layer_norm_eps": 1e-05,
|
27 |
+
"max_position_embeddings": 130,
|
28 |
+
"model_type": "roberta",
|
29 |
+
"num_attention_heads": 12,
|
30 |
+
"num_hidden_layers": 12,
|
31 |
+
"pad_token_id": 1,
|
32 |
+
"position_embedding_type": "absolute",
|
33 |
+
"problem_type": "multi_label_classification",
|
34 |
+
"tokenizer_class": "BertweetTokenizer",
|
35 |
+
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.11.3",
|
37 |
+
"type_vocab_size": 1,
|
38 |
+
"use_cache": true,
|
39 |
+
"vocab_size": 64001
|
40 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdde92a6fa3e710373cdbf8c6ab1fe99918955312351a3344807cdbe15583d6e
|
3 |
+
size 539691437
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": "<mask>"}
|
test_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"test_loss": 0.9019122123718262,
|
3 |
+
"test_hs_f1": 0.6540642722117203,
|
4 |
+
"test_hs_precision": 0.49570200573065903,
|
5 |
+
"test_hs_recall": 0.9611111111111111,
|
6 |
+
"test_tr_f1": 0.6102635228848822,
|
7 |
+
"test_tr_precision": 0.4819277108433735,
|
8 |
+
"test_tr_recall": 0.831758034026465,
|
9 |
+
"test_ag_f1": 0.482573726541555,
|
10 |
+
"test_ag_precision": 0.35405192761605037,
|
11 |
+
"test_ag_recall": 0.7575757575757576,
|
12 |
+
"test_macro_hs_f1_score": 0.548190168321794,
|
13 |
+
"test_emr_no_gating": 0.41133333333333333,
|
14 |
+
"test_emr": 0.4116666666666667,
|
15 |
+
"test_macro_f1": 0.5823004841804504,
|
16 |
+
"test_macro_precision": 0.4438938796520233,
|
17 |
+
"test_macro_recall": 0.8501482605934143,
|
18 |
+
"test_runtime": 6.346,
|
19 |
+
"test_samples_per_second": 472.739,
|
20 |
+
"test_steps_per_second": 29.625
|
21 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"normalization": false, "bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 128, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "vinai/bertweet-base", "tokenizer_class": "BertweetTokenizer"}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9cc84f5788a93cec1f8d9335849f002452a3748a72ff1b74818e7a8d827c4e89
|
3 |
+
size 2799
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|