Description
Pretrained XlmRoBertaForSequenceClassification, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.xlm_r_finetuned_toxic_political_tweets_spanish_pipeline is a Castilian, Spanish model originally trained by Newtral.
How to use
pipeline = PretrainedPipeline("xlm_r_finetuned_toxic_political_tweets_spanish_pipeline", lang = "es")
annotations = pipeline.transform(df)
val pipeline = new PretrainedPipeline("xlm_r_finetuned_toxic_political_tweets_spanish_pipeline", lang = "es")
val annotations = pipeline.transform(df)
Model Information
| Model Name: | xlm_r_finetuned_toxic_political_tweets_spanish_pipeline |
| Type: | pipeline |
| Compatibility: | Spark NLP 5.5.0+ |
| License: | Open Source |
| Edition: | Official |
| Language: | es |
| Size: | 801.4 MB |
References
https://huggingface.co/Newtral/xlm-r-finetuned-toxic-political-tweets-es
Included Models
- DocumentAssembler
- TokenizerModel
- XlmRoBertaForSequenceClassification