English toxic_comment_model_pipeline pipeline DistilBertForSequenceClassification from martin-ha

Description

Pretrained DistilBertForSequenceClassification, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.toxic_comment_model_pipeline is a English model originally trained by martin-ha.

Download Copy S3 URI

How to use


pipeline = PretrainedPipeline("toxic_comment_model_pipeline", lang = "en")
annotations =  pipeline.transform(df)   


val pipeline = new PretrainedPipeline("toxic_comment_model_pipeline", lang = "en")
val annotations = pipeline.transform(df)

Model Information

Model Name: toxic_comment_model_pipeline
Type: pipeline
Compatibility: Spark NLP 5.5.1+
License: Open Source
Edition: Official
Language: en
Size: 249.5 MB

References

https://huggingface.co/martin-ha/toxic-comment-model

Included Models

  • DocumentAssembler
  • TokenizerModel
  • DistilBertForSequenceClassification