File size: 2,762 Bytes
f0296eb
20f382b
f0296eb
 
 
20f382b
 
 
 
 
f0296eb
 
20f382b
 
f0296eb
20f382b
 
 
 
 
 
807dab1
20f382b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
807dab1
 
 
 
 
 
 
20f382b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
language: 
- en
- it
- sl
tags:
- hate-speech-detection
- multilingual
- XLM-R
license: apache-2.0
metrics:
- accuracy
- precision
- recall
- f1
---

# Multilingual Hate Speech Classifier

## Model Description

This model is a multilingual hate speech classifier based on the XLM-R architecture. It is trained to detect hate speech in English, Italian, and Slovene. The model leverages multilingual datasets and incorporates techniques to learn from disagreement among annotators, making it robust in understanding and identifying nuanced hate speech across different languages. It has been developed as part of my Master's thesis and the training methodology follows the approach outlined by Kralj Novak et al. (2022) in their paper ["Handling Disagreement in Hate Speech Modelling"](https://link.springer.com/chapter/10.1007/978-3-031-08974-9_54).

## Model Details

- **Model Name:** Multilingual Hate Speech Classifier
- **Model Architecture:** XLM-R (XLM-RoBERTa)
- **Languages Supported:** English (EN), Italian (IT), Slovene (SL)

## Training Data

The model is trained using a multilingual dataset consisting of Twitter and YouTube comments in EN, IT and SL.

### Techniques Used

- **Multilingual Training:** The model is trained on datasets in multiple languages, allowing it to generalize well across different languages.
- **Learning from Disagreement:** The model incorporates techniques to learn from annotator disagreement, improving its ability to handle ambiguous and nuanced cases of hate speech.

### Hate Speech Classes

- **Acceptable**: does not present inappropriate, offensive or violent elements.
- **Inappropriate**: contains terms that are obscene or vulgar; but the text is not directed at any specific target.
- **Offensive**: includes offensive generalizations, contempt, dehumanization, or indirect offensive remarks.
- **Violent**: threatens, indulges, desires or calls for physical violence against a target; it also includes calling for, denying or glorifying war crimes and crimes against humanity.

## Evaluation Metrics

The model's performance is evaluated using the following metrics:

- **Krippendorff's Ordinal Alpha**
- **Accuracy**
- **Precision**
- **Recall**
- **F1 Score**

These metrics are computed for each language separately, as well as across the entire multilingual dataset. Krippendorff's Alpha was used to measure both the disagreement between the annotators themselves and
 between the annotators and the model.
 
### Primary Use Case

The primary use case for this model is to automatically detect and moderate hate speech on social media platforms, online forums, and other digital content platforms. This can help in reducing the spread of harmful content and maintaining a safe online environment.