Text Classification
Transformers
PyTorch
English
bert
hate-speech
hate-speech-detection
text-embeddings-inference
Run this model with HF Jobs
Run ctoraman/hate-speech-bert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ctoraman/hate-speech-bert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ctoraman/hate-speech-bert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ctoraman/hate-speech-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ctoraman/hate-speech-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ctoraman/hate-speech-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ctoraman/hate-speech-bert") model = AutoModelForSequenceClassification.from_pretrained("ctoraman/hate-speech-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123---license: cc-by-nc-sa-4.0---12345678910111213141516171819202122232425262728293031323334353637383940---language:- entags:- bertlicense: cc-by-nc-sa-4.0---# hate-speech-bert (base-uncased)Fine-tuned hate speech detection model on English language using Toraman22 v2 dataset published at https://github.com/avaapm/hatespeechClass labels:"0": Neutral"1": Offensive"2": HateWe split 80-20 train-test randomly.5 epochs train_loss: 0.0948eval_f1 is 0.9426, eval_accuracy is 0.9430### BibTeX entry and citation info```bibtex@InProceedings{toraman2022large,author = {Toraman, Cagri and \c{S}ahinu\c{c}, Furkan and Yilmaz, Eyup Halit},title = {Large-Scale Hate Speech Detection with Cross-Domain Transfer},booktitle = {Proceedings of the Language Resources and Evaluation Conference},month = {June},year = {2022},address = {Marseille, France},publisher = {European Language Resources Association},pages = {2215--2225},url = {https://aclanthology.org/2022.lrec-1.238}}```
README.md+37