Multilingual xlmr_large_toxicity_classifier_pipeline pipeline XlmRoBertaForSequenceClassification from textdetox

Description

Pretrained XlmRoBertaForSequenceClassification, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.xlmr_large_toxicity_classifier_pipeline is a Multilingual model originally trained by textdetox.

Download Copy S3 URI

How to use


pipeline = PretrainedPipeline("xlmr_large_toxicity_classifier_pipeline", lang = "xx")
annotations =  pipeline.transform(df)   


val pipeline = new PretrainedPipeline("xlmr_large_toxicity_classifier_pipeline", lang = "xx")
val annotations = pipeline.transform(df)

Model Information

Model Name: xlmr_large_toxicity_classifier_pipeline
Type: pipeline
Compatibility: Spark NLP 5.5.0+
License: Open Source
Edition: Official
Language: xx
Size: 876.6 MB

References

https://huggingface.co/textdetox/xlmr-large-toxicity-classifier

Included Models

  • DocumentAssembler
  • TokenizerModel
  • XlmRoBertaForSequenceClassification