This model takes the XLM-Roberta-base model which has been continued to pre-traine on a large corpus of Twitter in multiple languages.
It was developed following a similar strategy as introduced as part of the
Tweet Eval framework.
The model is further finetuned on the MNLI dataset and also on the xnli dataset.
This model was developed to do Zero-Shot Text Classification in the realm of Hate Speech Detection. It is finetuned on the whole xnli train set containing 15 different languages like:
ar, bg ,de , en, el , es, fr, hi, ru, sw, th, tr, ur, vi, zh
Since the base model was pre-trained on 100 different languages it has shown some effectiveness in other languages. Please refer to the list of languages in the
XLM Roberta paper
1from transformers import pipeline
2classifier = pipeline("zero-shot-classification",
3 model="morit/xlm-t-roberta-base-mnli-xnli")
This model was pre-trained on set of 100 languages, as described in the original paper. It was then fine-tuned on the task of NLI on the concatenated MNLI train set. Finally, it was trained for one additional epoch on only XNLI data where the translations for the premise and hypothesis are shuffled such that the premise and hypothesis for each example come from the same original English example but the premise and hypothesis are of different languages.
The following hyper-parameters were chosen:
The model was evaluated on all the test sets of the xnli dataset resulting in the following accuracies: