Twi albert_news_classification_pipeline pipeline BertForSequenceClassification from clhuang

Description

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

Download Copy S3 URI

How to use


pipeline = PretrainedPipeline("albert_news_classification_pipeline", lang = "tw")
annotations =  pipeline.transform(df)   


val pipeline = new PretrainedPipeline("albert_news_classification_pipeline", lang = "tw")
val annotations = pipeline.transform(df)

Model Information

Model Name: albert_news_classification_pipeline
Type: pipeline
Compatibility: Spark NLP 5.5.0+
License: Open Source
Edition: Official
Language: tw
Size: 39.8 MB

References

https://huggingface.co/clhuang/albert-news-classification

Included Models

  • DocumentAssembler
  • TokenizerModel
  • BertForSequenceClassification