Text Classification
Transformers
Safetensors
modernbert
feature-extraction
profanity
offensive-language
hate-speech
content-moderation
indic
multilingual
code-mixed
multi-label
text-embeddings-inference
Instructions to use CobuildX-AI/cbx-indic-profanity-detector-36M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CobuildX-AI/cbx-indic-profanity-detector-36M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CobuildX-AI/cbx-indic-profanity-detector-36M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("CobuildX-AI/cbx-indic-profanity-detector-36M") model = AutoModel.from_pretrained("CobuildX-AI/cbx-indic-profanity-detector-36M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download profanity_config.json from CobuildX-AI/cbx-indic-profanity-detector-36M: direct link, hf CLI and curl.
- Browser
- Download file 997 Bytes
-
https://huggingface.co/CobuildX-AI/cbx-indic-profanity-detector-36M/resolve/main/profanity_config.json
- Command line
-
hf download hf://CobuildX-AI/cbx-indic-profanity-detector-36M/profanity_config.json
-
curl -L -o profanity_config.json https://huggingface.co/CobuildX-AI/cbx-indic-profanity-detector-36M/resolve/main/profanity_config.json
997 Bytes
| { | |
| "name": "cbx-indic-profanity-detector-36M", | |
| "version": "v0.1", | |
| "license": "apache-2.0", | |
| "base_model": "jhu-clsp/mmBERT-small", | |
| "base_revision": "abc32620dd4f6ab06f5fbe905dc25f310618e09f", | |
| "labels": [ | |
| "profanity", | |
| "insult", | |
| "hate", | |
| "sexual" | |
| ], | |
| "heads": [ | |
| "profanity", | |
| "insult", | |
| "hate", | |
| "sexual", | |
| "offensive" | |
| ], | |
| "thresholds": { | |
| "profanity": 0.8479, | |
| "insult": 0.509, | |
| "hate": 0.443, | |
| "sexual": 0.9385, | |
| "offensive": 0.4108 | |
| }, | |
| "max_len": 256, | |
| "embedding_rank": null, | |
| "parameters": 36456965, | |
| "languages": [ | |
| "hi", | |
| "bn", | |
| "mr", | |
| "ta", | |
| "te", | |
| "kn", | |
| "ml", | |
| "gu", | |
| "pa", | |
| "or", | |
| "as", | |
| "ur", | |
| "en" | |
| ], | |
| "scores": { | |
| "gold_f1": { | |
| "profanity": 0.7007, | |
| "insult": 0.6965, | |
| "hate": 0.5091, | |
| "sexual": 0.8327, | |
| "offensive": 0.8901 | |
| }, | |
| "gold_pr_auc": { | |
| "profanity": 0.9033, | |
| "insult": 0.8293, | |
| "hate": 0.4845, | |
| "sexual": 0.9403, | |
| "offensive": 0.9625 | |
| }, | |
| "gold_clean_flagged": 0.036, | |
| "hatecheck_hi_hate_recall": 0.1688 | |
| } | |
| } | |