xlm roberta large xnli Model Description This model takes xlm roberta large and fine tunes it on a combination of NLI data in 15 languages. It is intended to be used for zero shot text classification, such as with the Hugging Face ZeroShotClassificationPipeline. Intended Usage This model is intended to be used for zero shot text classification, especially in languages other than English. It is fine tuned on XNLI, which is a multilingual NLI dataset. The model can therefore be used with any of the languages in the XNLI corpus: English French Spanish German Greek Bulgarian Russian Turkish Arabic Vietnamese Thai Chinese Hindi Swahili Urdu Since the base model was pre trained trained on 100 different languages, the model has shown some effectiveness in languages beyond those listed above as well. See the full list of pre trained languages in appendix A of the XLM Roberata paper For English only classification, it is recommended to use bart large mnli or a distilled bart MNLI model. With the zero shot classification pipeline The model can be loaded with the zero shot classification pipeline like so: You can then classify in any of the above languages. You can even pass the labels in one…
We use cookies for essential functionality and analytics. You can accept or reject analytics cookies.Cookie policy