Downloads · 30 days
10
36% of all-time downloads
sastarogers/alankar_classifier_v2_final
alankar_classifier_v2_final is a text classification model from sastarogers. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
10
36% of all-time downloads
All-time downloads
28
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of ai4bharat/IndicBERTv2-MLM-only on the None dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 Micro |
|---|---|---|---|---|
| No log | 1.0 | 48 | 0.2702 | 0.3394 |
| No log | 2.0 | 96 | 0.1215 | 0.9107 |
| No log | 3.0 | 144 | 0.0735 | 0.9298 |
| No log | 4.0 | 192 | 0.0592 | 0.9516 |
| No log | 5.0 | 240 | 0.0482 | 0.9577 |
| No log | 6.0 | 288 | 0.0418 | 0.9665 |
| No log | 7.0 | 336 | 0.0396 | 0.9611 |
| No log | 8.0 | 384 | 0.0379 | 0.9611 |
| No log | 9.0 | 432 | 0.0366 | 0.9640 |
| No log | 10.0 | 480 | 0.0364 | 0.9640 |
| 0.0927 | 11.0 | 528 | 0.0363 | 0.9611 |
| 0.0927 | 12.0 | 576 | 0.0360 | 0.9640 |
| 0.0927 | 13.0 | 624 | 0.0358 | 0.9669 |
| 0.0927 | 14.0 | 672 | 0.0355 | 0.9669 |
| 0.0927 | 15.0 | 720 | 0.0355 | 0.9669 |
This model is intended for educational and literary analysis purposes, providing a programmatic way to identify potential alankars in a line of poetry.
Limitations:
Anupras (Alliteration), as its pattern is the simplest to detect. It may confidently predict Anupras even when a more complex alankar is also present.Utpreksha from other comparison-based alankars like Roopak. It relies heavily on keywords (मानो, ज्यों, etc.) for high confidence.The easiest way to use the model is with a pipeline.
!pip install transformers[torch] -q
from transformers import pipeline
# Load the model from the Hugging Face Hub
model_name = "sastarogers/alankar_classifier_v2_final"
alankar_detector = pipeline(
"text-classification",
model=model_name,
return_all_scores=True
)
# Test with a line of poetry
line = "काली घटा का घमंड घटा।"
predictions = alankar_detector(line)
print(predictions)