Text Classification
Transformers
Safetensors
Moroccan Arabic
Arabic
bert
toxicity-detection
content-moderation
offensive-language
moroccan-darija
darija
low-resource-languages
Eval Results (legacy)
text-embeddings-inference
Instructions to use TypicaAI/DarijaToxicityDetector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TypicaAI/DarijaToxicityDetector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TypicaAI/DarijaToxicityDetector")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TypicaAI/DarijaToxicityDetector") model = AutoModelForSequenceClassification.from_pretrained("TypicaAI/DarijaToxicityDetector") - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": null, | |
| "classifier_dropout": null, | |
| "cls_token": "[CLS]", | |
| "do_lower_case": true, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "clean", | |
| "1": "offensive" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "label2id": { | |
| "clean": 0, | |
| "offensive": 1 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "mask_token": "[MASK]", | |
| "max_len": 128, | |
| "max_position_embeddings": 512, | |
| "model_max_length": 128, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token": "[PAD]", | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "sep_token": "[SEP]", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.12.1", | |
| "type_vocab_size": 2, | |
| "unk_token": "[UNK]", | |
| "use_cache": true, | |
| "vocab_size": 80000 | |
| } | |