English legalbert_large_1_7m_2_class_actions_pipeline pipeline BertForSequenceClassification from afsuarezg

Description

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

Download Copy S3 URI

How to use


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


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

Model Information

Model Name: legalbert_large_1_7m_2_class_actions_pipeline
Type: pipeline
Compatibility: Spark NLP 5.5.0+
License: Open Source
Edition: Official
Language: en
Size: 1.2 GB

References

https://huggingface.co/afsuarezg/legalbert-large-1.7M-2_class_actions

Included Models

  • DocumentAssembler
  • TokenizerModel
  • BertForSequenceClassification