TY - GEN
T1 - Offensive Hebrew Corpus and Detection using BERT
AU - Hamad, Nagham
AU - Jarrar, Mustafa
AU - Khalilia, Mohammad
AU - Nashif, Nadim
N1 - Publisher Copyright:
© 2023 IEEE.
PY - 2023/12/7
Y1 - 2023/12/7
N2 - Offensive language detection has been well studied in many languages, but it is lagging behind in low-resource languages, such as Hebrew. In this paper, we present a new offensive language corpus in Hebrew. A total of 15,881 tweets were retrieved from Twitter. Each was labeled with one or more of five classes (abusive, hate, violence, pornographic, or none offensive) by Arabic-Hebrew bilingual speakers. The annotation process was challenging as each annotator is expected to be familiar with the Israeli culture, politics, and practices to understand the context of each tweet. We fine-tuned two Hebrew BERT models, HeBERT and AlephBERT, using our proposed dataset and another published dataset. We observed that our data boosts HeBERT performance by 2% when combined with DOLaH. Fine-tuning AlephBERT on our data and testing on DOLaH yields 69% accuracy, while fine-tuning on DOLaH and testing on our data yields 57% accuracy, which may be an indication to the generalizability our data offers. Our dataset and fine-tuned models are available on GitHub and Huggingface.
AB - Offensive language detection has been well studied in many languages, but it is lagging behind in low-resource languages, such as Hebrew. In this paper, we present a new offensive language corpus in Hebrew. A total of 15,881 tweets were retrieved from Twitter. Each was labeled with one or more of five classes (abusive, hate, violence, pornographic, or none offensive) by Arabic-Hebrew bilingual speakers. The annotation process was challenging as each annotator is expected to be familiar with the Israeli culture, politics, and practices to understand the context of each tweet. We fine-tuned two Hebrew BERT models, HeBERT and AlephBERT, using our proposed dataset and another published dataset. We observed that our data boosts HeBERT performance by 2% when combined with DOLaH. Fine-tuning AlephBERT on our data and testing on DOLaH yields 69% accuracy, while fine-tuning on DOLaH and testing on our data yields 57% accuracy, which may be an indication to the generalizability our data offers. Our dataset and fine-tuned models are available on GitHub and Huggingface.
KW - Deep Learning
KW - Hate speech
KW - Hebrew
KW - Offensive
KW - Pre-trained model
UR - https://www.scopus.com/pages/publications/85190092599
U2 - 10.1109/AICCSA59173.2023.10479258
DO - 10.1109/AICCSA59173.2023.10479258
M3 - Conference contribution
AN - SCOPUS:85190092599
T3 - International Conference On Computer Systems And Applications
BT - 2023 20th Acs/ieee International Conference On Computer Systems And Applications, Aiccsa
PB - IEEE Computer Society
T2 - 20th ACS/IEEE International Conference on Computer Systems and Applications, AICCSA 2023
Y2 - 4 December 2023 through 7 December 2023
ER -