Instructions to use IMSyPP/hate_speech_nl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IMSyPP/hate_speech_nl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="IMSyPP/hate_speech_nl")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("IMSyPP/hate_speech_nl") model = AutoModelForSequenceClassification.from_pretrained("IMSyPP/hate_speech_nl") - Notebooks
- Google Colab
- Kaggle
Hate Speech Classifier for Social Media Content in Dutch
A monolingual model for hate speech classification of social media content in Dutch. The model was trained on 20000 social media posts (youtube, twitter, facebook) and tested on an independent test set of 2000 posts. It is based on thepre-trained language model BERTje.
Tokenizer
During training the text was preprocessed using the BERTje tokenizer. We suggest the same tokenizer is used for inference.
Model output
The model classifies each input into one of four distinct classes:
- 0 - acceptable
- 1 - inappropriate
- 2 - offensive
- 3 - violent
- Downloads last month
- 27