Views
No views yet
| Metric | Score |
|---|---|
| Accuracy | 1.0000 (100.00%) |
| F1 Score | 1.0000 |
| Precision | 1.0000 |
| Recall | 1.0000 |
| Fold | Accuracy | F1 Score | Precision | Recall |
|---|---|---|---|---|
| Fold 0 | 0.9949 | 0.9949 | 0.9950 | 0.9949 |
| Fold 1 ✅ | 1.0000 | 1.0000 | 1.0000 | 1.0000 |
| Fold 2 | 1.0000 | 1.0000 | 1.0000 | 1.0000 |
| Fold 3 | 1.0000 | 1.0000 | 1.0000 | 1.0000 |
| Fold 4 | 1.0000 | 1.0000 | 1.0000 | 1.0000 |
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4# Load model and tokenizer
5model_name = "sandip404/sambodhan-folded-muril-grievance"
6tokenizer = AutoTokenizer.from_pretrained(model_name)
7model = AutoModelForSequenceClassification.from_pretrained(model_name)
8
9# Example inference
10text = "बिजुली मर्मतका लागि पटक पटक सम्पर्क गर्दा पनि आएको छैन।"
11inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True, max_length=128)
12
13with torch.no_grad():
14 outputs = model(**inputs)
15 predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
16 predicted_class_id = predictions.argmax().item()
17 confidence = predictions.max().item()
18
19print(f"Predicted class: {predicted_class_id}")
20print(f"Confidence: {confidence:.3f}")@misc{sambodhan-muril-nepali-grievance,
author = {Sambodhan Team},
title = {MuRIL Nepali Grievance Classification Model},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/sandip404/sambodhan-folded-muril-grievance}}
}