English ag_news2_pipeline pipeline RoBertaForSequenceClassification from ntmma

Description

Pretrained RoBertaForSequenceClassification, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.ag_news2_pipeline is a English model originally trained by ntmma.

Download Copy S3 URI

How to use


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


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

Model Information

Model Name: ag_news2_pipeline
Type: pipeline
Compatibility: Spark NLP 5.5.0+
License: Open Source
Edition: Official
Language: en
Size: 444.1 MB

References

https://huggingface.co/ntmma/ag_news2

Included Models

  • DocumentAssembler
  • TokenizerModel
  • RoBertaForSequenceClassification