Downloads · 30 days
23
8% of all-time downloads
H-Layba/urdu-sentiment-classifier
urdu-sentiment-classifier is a text classification model from H-Layba. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
A fine-tuned bert-base-multilingual-cased model for Urdu sentiment analysis — classifying Urdu text as positive or negative.
Downloads · 30 days
23
8% of all-time downloads
All-time downloads
296
Public
Parameters
178M
12.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors711 MB · 100%
From the Hugging Face model README
A fine-tuned bert-base-multilingual-cased model for Urdu sentiment analysis — classifying Urdu text as positive or negative.
| Metric | Score |
|---|---|
| Accuracy | 81.00% |
| F1 Score (weighted) | 0.8098 |
from transformers import pipeline
classifier = pipeline("text-classification", model="H-Layba/urdu-sentiment-classifier")
classifier("یہ فلم بہت اچھی تھی")
# [{'label': 'positive', 'score': 0.9936}]
classifier("آج کا دن بہت برا تھا")
# [{'label': 'negative', 'score': 0.9918}]
Trained on mirfan899/imdb_urdu_reviews — 50,000 Urdu translations of IMDB movie reviews with positive/negative sentiment labels.
This model is part of a larger collection of fine-tuned Urdu NLP models: