Views
No views yet
ai4bharat/indic-bert) transformer model optimized for binary sentiment analysis on Assamese textual reviews. It maps localized Assamese content into binary sentiment classes (Positive and Negative).ai4bharat/indic-bert)as)| Metric | Score | Percentage / Value |
|---|---|---|
| Accuracy | 0.927141 | 92.71% |
| Macro F1-Score | 0.921967 | 0.9220 |
| Macro Precision | 0.920584 | 0.9206 |
| Macro Recall | 0.923433 | 0.9234 |
| ROC-AUC | 0.977318 | 0.9773 |
| Cohen's Kappa | 0.843940 | 0.8439 |
0: Negative, 1: Positive).transformers library:1from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
2
3# Load model and tokenizer
4model_name = "AvinabhDutta-Dev/assamese-sentiment-indicbert"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForSequenceClassification.from_pretrained(model_name)
7
8# Create pipeline
9classifier = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
10
11# Example text (Assamese)
12sample_text = "চলচ্চিত্ৰখনৰ কাহিনী আৰু অভিনয় অতি সুন্দৰ হৈছে।"
13result = classifier(sample_text)
14
15print(result)| Parameter | Value |
|---|---|
| Base Model | ai4bharat/indic-bert |
| Total Epochs | 4.0 |
| Train Batch Size | 16 |
| Learning Rate | 2e-05 |
| Weight Decay | 0.01 |
| Warmup Ratio | 0.1 |
| Checkpoint Selection | Best Macro F1 |
Dev, C., Baishya, B., Dey, N., Dutta, A., & Dutta, S. (2026). Sentiment Analysis of Assamese Reviews using Transfer Learning Models. Preprint. https://doi.org/10.2139/ssrn.6357982