offensive_classifier

This commit is contained in:
ahmed531998 2023-04-12 20:45:19 +02:00
parent 18330b122b
commit 2a1f22a235
7 changed files with 61254 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{
"_name_or_path": "distilbert-base-uncased",
"activation": "gelu",
"architectures": [
"DistilBertForSequenceClassification"
],
"attention_dropout": 0.1,
"dim": 768,
"dropout": 0.1,
"hidden_dim": 3072,
"id2label": {
"0": "hate",
"1": "offensive",
"2": "neither"
},
"initializer_range": 0.02,
"label2id": {
"hate": 0,
"neither": 2,
"offensive": 1
},
"max_position_embeddings": 512,
"model_type": "distilbert",
"n_heads": 12,
"n_layers": 6,
"pad_token_id": 0,
"problem_type": "single_label_classification",
"qa_dropout": 0.1,
"seq_classif_dropout": 0.2,
"sinusoidal_pos_embds": false,
"tie_weights_": true,
"torch_dtype": "float32",
"transformers_version": "4.27.4",
"vocab_size": 30522
}

Binary file not shown.

View File

@ -0,0 +1,7 @@
{
"cls_token": "[CLS]",
"mask_token": "[MASK]",
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"unk_token": "[UNK]"
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
{
"cls_token": "[CLS]",
"do_lower_case": true,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"special_tokens_map_file": null,
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "DistilBertTokenizer",
"unk_token": "[UNK]"
}

Binary file not shown.

30522
offensive_classifier/vocab.txt Normal file

File diff suppressed because it is too large Load Diff