How to use this model directly from the
from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("akhooli/xlm-r-large-arabic-toxic") model = AutoModelForSequenceClassification.from_pretrained("akhooli/xlm-r-large-arabic-toxic")
Toxic (hate speech) classification (Label_0: non-toxic, Label_1: toxic) of Arabic comments by fine-tuning XLM-Roberta-Large.
Zero shot classification of other languages (also works in mixed languages - ex. Arabic & English).
Usage and further info: see last section in this Colab notebook