Offensive language detection in Hebrew: can other languages help?
What it is about
The authors build a binary offensive-language classifier for Hebrew, using a new set of 5217 annotated Facebook comments (two labels per comment, Kappa 0.82), and compare it with Arabic (9000 tweets) and English (OLID, 13 240 tweets). Three classifiers (random forest, logistic regression, RBF-SVM) are run on three representations: tf*idf bag of words, character 1–3-grams, and multilingual BERT sentence vectors. In monolingual tests mBERT gives the best F-measure in 5 of 9 cases, and BOW gives the best precision in 7 of 9. Cross-lingual transfer from Arabic to Hebrew raises Hebrew recall, but the other transfers are worse than monolingual; multilingual training with Arabic is close to monolingual results. The authors name tokenisation of prefixed Hebrew forms as a known difficulty for BOW.
Ideas
- I1. Test whether splitting Hebrew prefixes (the definite article, conjunctions, prepositions) before BOW changes the scores, using the segmenter of
tools/hboon the same comments. The paper states the problem but does not test a fix. - I2. The Arabic-to-Hebrew recall gain is asymmetric. Use the paper's per-direction tables as a negative control: any transfer claim for Mova's Semitic tools must hold in both directions before it is reported.
- I3. The paper's annotators disagree about "unknown" labels and some comments are non-Hebrew. Keep a rule that marks out-of-language and unlabelled items, the way
tools/langsegdoes, before any score is reported.
For Mova
I1 is a measurement for tools/hbo and the tokenisation chapter 2. Script and spelling. I2 is a rule for any cross-lingual test in 8. Lexicon and register (offensive register). I3 is a preprocessing step that belongs to tools/langseg. The classifiers themselves are not Mova's approach; only the BOW baseline is transparent enough to keep as a comparison.
Cite
@inproceedings{litvak2022offensive,
title = {{Offensive language detection in Hebrew: can other languages help?}},
author = {Litvak, Marina and Vanetik, Natalia and Liebeskind, Chaya and Hmdia, Omar and Madeghem, Rizek Abu},
booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
year = {2022},
url = {https://aclanthology.org/2022.lrec-1.396/}
}References
- Abadi, M., Agarwal, A., Barham, P., Brevdo, E., Chen, Z., Citro, C., Corrado, G. S., Davis, A., Dean, J., Devin, M., Ghemawat, S., Goodfellow, I., Harp, A., Irving, G., Isard, M., Jia, Y., Jozefowicz, R., Kaiser, L., Kudlur, M., Levenberg, J., Mané, D., Monga, R., Moore, S., Murray, D., Olah, C., Schuster, M., Shlens, J., Steiner, B., Sutskever, I., Talwar, K., Tucker, P., Vanhoucke, V., Vasudevan, V., Viégas, F., Vinyals, O., Warden, P., Wattenberg, M., Wicke, M., Yu, Y., and Zheng, X. (2015). TensorFlow: Large-scale machine learning on heterogeneous systems. Software available from tensorflow.org. find
- Breiman, L. (2001). Random forests. Machine learning, 45(1):5–32. find
- Chollet, F. et al. (2015). Keras. https://github.com/fchollet/keras. ↗
- Davidson, T., Warmsley, D., Macy, M., and Weber, I. (2017). Automated hate speech detection and the problem of offensive language. In Proceedings of the International AAAI Conference on Web and Social Media, volume 11(1). find
- Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018a). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. ↗
- Devlin, J., Chang, M., Lee, K., and Toutanova, K. (2018b). BERT: pre-training of deep bidirectional transformers for language understanding. CoRR, abs/1810.04805. ↗
- Ho, T. K. (1995). Random decision forests. In Proceedings of 3rd international conference on document analysis and recognition, volume 1, pages 278– 282. IEEE. find
- Liebeskind, C. and Liebeskind, S. (2018). Identifying abusive comments in hebrew facebook. In 2018 IEEE International Conference on the Science of Electrical Engineering in Israel (ICSEE), pages 1– 5. IEEE. find
- Liebeskind, C. and Nahon, K. (2017). Challenges in applying machine learning methods: Studying political interactions on social networks. In Semanitic Keyword-based Search on Structured Data Sources, pages 136–141. Springer. find
- Liu, P., Li, W., and Zou, L. (2019). Nuli at semeval-2019 task 6: Transfer learning for offensive language detection using bidirectional transformers. In Proceedings of the 13th international workshop on semantic evaluation, pages 87–91. find
- Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., and Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830. find
- Peters, M., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., and Zettlemoyer, L. (2018). Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237. find
- Ranasinghe, T. and Zampieri, M. (2020). Multilingual offensive language identification with cross-lingual embeddings. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 5838–5844. find
- Ranasinghe, T., Zampieri, M., and Hettiarachchi, H. (2019). Brums at hasoc 2019: Deep learning models for multilingual hate speech and offensive language identification. In FIRE (Working Notes), pages 199– 207. find
- Reimers, N. and Gurevych, I. (2019). Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 11. find
- Walker, S. H. and Duncan, D. B. (1967). Estimation of the probability of an event as a function of several independent variables. Biometrika, 54(1-2):167–179. 6. find
- Language Resource References Chiril, P., Benamara, F., Moriceau, V., Coulomb-Gully, M., and Kumar, A. (2019). Multilingual and multitarget hate speech detection in tweets. In Conférence sur le Traitement Automatique des Langues Naturelles (TALN-PFIA 2019), pages 351– 360. ATALA. find
- Çöltekin, Ç. (2020). A corpus of turkish offensive language on social media. In Proceedings of the 12th Language Resources and Evaluation Conference, pages 6174–6184. find
- Fišer, D., Erjavec, T., and Ljubešić, N. (2017). Legal framework, dataset and annotation schema for socially unacceptable online discourse practices in slovene. In Proceedings of the first workshop on abusive language online, pages 46–51. find
- Fortuna, P., da Silva, J. R., Wanner, L., Nunes, S., et al. (2019). A hierarchically-labeled portuguese hate speech dataset. In Proceedings of the Third Workshop on Abusive Language Online, pages 94– 104. find
- Hmdia, O., Madeghem, R. A., Vanetik, N., Litvak, M., and Liebeskind, C. (2021). Hebrew dataset of offensive comments. https://github.com/rezeq1/HebrewDataset. ↗
- Liebeskind, C., Liebeskind, S., and HaCohen-Kerner, Y. (2017). Comment relevance classification in facebook. In International Conference on Computational Linguistics and Intelligent Text Processing, pages 241–254. Springer. find
- Litvak, M., Vanetik, N., Nimer, Y., and Skout, A. (2021). Offensive language detection in semitic languages. In 1st CFP:Multimodal and Multilingual Hate Speech Detection workshop at KONVENS 2021. find
- Mandl, T., Modha, S., Majumder, P., Patel, D., Dave, M., Mandlia, C., and Patel, A. (2019). Overview of the hasoc track at fire 2019: Hate speech and offensive content identification in indo-european languages. In Proceedings of the 11th forum for information retrieval evaluation, pages 14–17. find
- Mandl, T., Modha, S., Kumar M, A., and Chakravarthi, B. R. (2020). Overview of the hasoc track at fire 2020: Hate speech and offensive language identification in tamil, malayalam, hindi, english and german. In Forum for Information Retrieval Evaluation, pages 29–32. find
- Mohaouchane, H., Mourhir, A., and Nikolov, N. S. (2019). Detecting offensive language on arabic social media using deep learning. In 2019 Sixth International Conference on Social Networks Analysis, Management and Security (SNAMS), pages 466– 471. IEEE. find
- Pitenis, Z., Zampieri, M., and Ranasinghe, T. (2020). Offensive language identification in greek. arXiv preprint arXiv:2003.07459. ↗
- Poletto, F., Stranisci, M., Sanguinetti, M., Patti, V., and Bosco, C. (2017). Hate speech annotation: Analysis of an italian twitter corpus. In 4th Italian Conference on Computational Linguistics, CLiC-it 2017, volume 2006, pages 1–6. CEUR-WS. find
- Sigurbergsson, G. I. and Derczynski, L. (2020). Offensive language and hate speech detection for danish. In Proceedings of The 12th Language Resources and Evaluation Conference, pages 3498–3508. find
- Tulkens, S., Hilte, L., Lodewyckx, E., Verhoeven, B., and Daelemans, W. (2016). A dictionary-based approach to racism detection in dutch social media. arXiv preprint arXiv:1608.08738. ↗
- Yasaswini, K., Puranik, K., Hande, A., Priyadharshini, R., Thavareesan, S., and Chakravarthi, B. R. (2021). Iiitt@ dravidianlangtech-eacl2021: Transfer learning for offensive language detection in dravidian languages. In Proceedings of the First Workshop on Speech and Language Technologies for Dravidian Languages, pages 187–194. find
- Zampieri, M., Malmasi, S., Nakov, P., Rosenthal, S., Farra, N., and Kumar, R. (2019a). Offensive Language Identification Dataset - OLID. https://github.com/idontflow/OLID. ↗
- Zampieri, M., Malmasi, S., Nakov, P., Rosenthal, S., Farra, N., and Kumar, R. (2019b). Predicting the Type and Target of Offensive Posts in Social Media. In Proceedings of NAACL. find
- Zampieri, M., Malmasi, S., Nakov, P., Rosenthal, S., Farra, N., and Kumar, R. (2019c). Semeval-2019 task 6: Identifying and categorizing offensive language in social media (offenseval). In Proceedings of the 13th International Workshop on Semantic Evaluation, pages 75–86. find
This page in Markdown → https://md.mova.elamur.ai/free/en/docs/papers/lingbulk-2022-litvak-offensive-language-detection-hebrew-can/