Hausa hausa_sentiment_analysis_pipeline pipeline BertForSequenceClassification from Kumshe

Description

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

Download Copy S3 URI

How to use


pipeline = PretrainedPipeline("hausa_sentiment_analysis_pipeline", lang = "ha")
annotations =  pipeline.transform(df)   


val pipeline = new PretrainedPipeline("hausa_sentiment_analysis_pipeline", lang = "ha")
val annotations = pipeline.transform(df)

Model Information

Model Name: hausa_sentiment_analysis_pipeline
Type: pipeline
Compatibility: Spark NLP 5.5.0+
License: Open Source
Edition: Official
Language: ha
Size: 405.9 MB

References

https://huggingface.co/Kumshe/Hausa-sentiment-analysis

Included Models

  • DocumentAssembler
  • TokenizerModel
  • BertForSequenceClassification