DanishMahdi/snd_movie_sentiment_analysis
010
๐ฌ Sindhi Movie Sentiment Analysis
Fine-tuned XLM-RoBERTa-base model for binary sentiment classification on Sindhi movie reviews.
๐ Model Details
๐ Training Configuration
๐ Quick Start
Install dependencies
pip install transformers torchRun inference
from transformers import pipeline
pipe = pipeline(
"text-classification",
model="DanishMahdi/snd_sentiment_analysis",
)
reviews = [
"ูู ููู
ุจฺูชู ุฎุฑุงุจ ูุฆูุ ู
ูู ฺฉู ูพุณูุฏ ูู ุขุฆู", # negative
"ูู ููู
ุชู
ุงู
ุณูบู ูุฆูุ ู
ูู ฺฉู ุชู
ุงู
ฺฏฺูปู ูพุณูุฏ ุขุฆู", # positive
]
for review in reviews:
result = pipe(review)[0]
print(f"Label: {result['label']} | Score: {result['score']:.4f}")Output
Label: NEGATIVE | Score: 0.9873
Label: POSITIVE | Score: 0.9912๐ Repository Structure
DanishMahdi/snd_sentiment_analysis/
โโโ config.json # Model config
โโโ model.safetensors # Fine-tuned weights
โโโ tokenizer_config.json # Tokenizer config
โโโ sentencepiece.bpe.model # SentencePiece vocab
โโโ evaluation/
โ โโโ test_metrics.json # Accuracy, F1, Precision, Recall
โ โโโ confusion_matrix.json # Raw confusion matrix
โ โโโ confusion_matrix.png # Confusion matrix plot
โ โโโ training_curves.png # Loss & F1 over epochs
โ โโโ test_metrics_bar.png # Bar chart of metrics
โ โโโ classification_report.txt # Full sklearn report
โโโ README.md๐ Evaluation Results
See evaluation/test_metrics.json for the latest numbers. Plots are available in the evaluation/ folder.
๐ Dataset
The training data is sourced from `DanishMahdi/snd_movies_sentiment_analysis`
- Total rows: ~40,000
- Positive reviews: ~20,000
- Negative reviews: ~20,000
- Split: 80% train / 10% validation / 10% test
๐ Citation
@misc{danish2025snd,
author = {Danish Mahdi},
title = {Sindhi Movie Sentiment Analysis using XLM-RoBERTa},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/DanishMahdi/snd_sentiment_analysis},
}โ๏ธ License
MIT โ free to use for research and commercial purposes.
