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-17M 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-17M 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-17M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("CobuildX-AI/cbx-indic-profanity-detector-17M") model = AutoModel.from_pretrained("CobuildX-AI/cbx-indic-profanity-detector-17M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download profanity_config.json from CobuildX-AI/cbx-indic-profanity-detector-17M: direct link, hf CLI and curl.
- Browser
- Download file 999 Bytes
-
https://huggingface.co/CobuildX-AI/cbx-indic-profanity-detector-17M/resolve/main/profanity_config.json
- Command line
-
hf download hf://CobuildX-AI/cbx-indic-profanity-detector-17M/profanity_config.json
-
curl -L -o profanity_config.json https://huggingface.co/CobuildX-AI/cbx-indic-profanity-detector-17M/resolve/main/profanity_config.json
999 Bytes
| { | |
| "name": "cbx-indic-profanity-detector-17M", | |
| "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.6038, | |
| "insult": 0.6047, | |
| "hate": 0.2781, | |
| "sexual": 0.8184, | |
| "offensive": 0.4491 | |
| }, | |
| "max_len": 256, | |
| "embedding_rank": 128, | |
| "parameters": 16677637, | |
| "languages": [ | |
| "hi", | |
| "bn", | |
| "mr", | |
| "ta", | |
| "te", | |
| "kn", | |
| "ml", | |
| "gu", | |
| "pa", | |
| "or", | |
| "as", | |
| "ur", | |
| "en" | |
| ], | |
| "scores": { | |
| "gold_f1": { | |
| "profanity": 0.7619, | |
| "insult": 0.6588, | |
| "hate": 0.4906, | |
| "sexual": 0.8507, | |
| "offensive": 0.8828 | |
| }, | |
| "gold_pr_auc": { | |
| "profanity": 0.9088, | |
| "insult": 0.8327, | |
| "hate": 0.4481, | |
| "sexual": 0.9427, | |
| "offensive": 0.9599 | |
| }, | |
| "gold_clean_flagged": 0.0402, | |
| "hatecheck_hi_hate_recall": 0.2412 | |
| } | |
| } | |