Instructions to use kingshukroy/twhin-bert-base-hate-speech-ben-hin with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kingshukroy/twhin-bert-base-hate-speech-ben-hin with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kingshukroy/twhin-bert-base-hate-speech-ben-hin")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kingshukroy/twhin-bert-base-hate-speech-ben-hin") model = AutoModelForSequenceClassification.from_pretrained("kingshukroy/twhin-bert-base-hate-speech-ben-hin") - Notebooks
- Google Colab
- Kaggle
This model is a finetuned version of Twitter/twhin-bert-base model in the Bengali and Hindi languages.
The dataset used is a Kaggle Dataset - Modified-hate-speech-bengali-hindi
This model can classify Bengali and Hindi texts into the following 5 classes :-
- defamation
- hate
- non-hate
- violence
- vulgar
- Downloads last month
- 9