Instructions to use MuhammadSaadMehboob/cyberbully-hatespeech with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MuhammadSaadMehboob/cyberbully-hatespeech with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="MuhammadSaadMehboob/cyberbully-hatespeech")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("MuhammadSaadMehboob/cyberbully-hatespeech") model = AutoModelForSequenceClassification.from_pretrained("MuhammadSaadMehboob/cyberbully-hatespeech") - Notebooks
- Google Colab
- Kaggle
Hatespeech Detection Model
This model is part of the Cyberbully Detection System and is designed to detect hatespeech in text/images.
Model Type
transformers
Usage
from huggingface_hub import hf_hub_download
# Download the model
model_path = hf_hub_download(
repo_id="MuhammadSaadMehboob/cyberbully-hatespeech",
filename="model_file.pt" # or appropriate filename
)
Training
This model was trained on cyberbullying datasets for hatespeech detection.
License
MIT License
- Downloads last month
- 3