Description
Pretrained BertForSequenceClassification, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.tiny_bert_sentiment_persian_pipeline is a Persian model originally trained by dadashzadeh.
How to use
pipeline = PretrainedPipeline("tiny_bert_sentiment_persian_pipeline", lang = "fa")
annotations = pipeline.transform(df)
val pipeline = new PretrainedPipeline("tiny_bert_sentiment_persian_pipeline", lang = "fa")
val annotations = pipeline.transform(df)
Model Information
| Model Name: | tiny_bert_sentiment_persian_pipeline |
| Type: | pipeline |
| Compatibility: | Spark NLP 5.5.0+ |
| License: | Open Source |
| Edition: | Official |
| Language: | fa |
| Size: | 16.7 MB |
References
https://huggingface.co/dadashzadeh/tiny-bert-Sentiment-persian
Included Models
- DocumentAssembler
- TokenizerModel
- BertForSequenceClassification