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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Hate Speech Classifier for Social Media Content in Dutch
|
| 2 |
|
| 3 |
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](https://huggingface.co/wietsedv/bert-base-dutch-cased).
|
|
@@ -12,10 +18,4 @@ The model classifies each input into one of four distinct classes:
|
|
| 12 |
* 0 - acceptable
|
| 13 |
* 1 - inappropriate
|
| 14 |
* 2 - offensive
|
| 15 |
-
* 3 - violent
|
| 16 |
-
|
| 17 |
-
---
|
| 18 |
-
language:
|
| 19 |
-
- nl
|
| 20 |
-
license: mit
|
| 21 |
-
---
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- nl
|
| 4 |
+
license: mit
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
# Hate Speech Classifier for Social Media Content in Dutch
|
| 8 |
|
| 9 |
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](https://huggingface.co/wietsedv/bert-base-dutch-cased).
|
|
|
|
| 18 |
* 0 - acceptable
|
| 19 |
* 1 - inappropriate
|
| 20 |
* 2 - offensive
|
| 21 |
+
* 3 - violent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|