Downloads · 30 days
17
1% of all-time downloads
neuropark/sahajBERT-NCC
sahajBERT-NCC is a text classification model from neuropark. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
sahajBERT fine-tuned for news article classification using the sna.bn split of IndicGlue.
Downloads · 30 days
17
1% of all-time downloads
All-time downloads
1.1K
Public
Repo size
1 GB
Likes
2
Public
Click a slice to open those files.
.bin71.8 MB · 98%
From the Hugging Face model README
sahajBERT fine-tuned for news article classification using the sna.bn split of IndicGlue.
The model is trained for classifying articles into 5 different classes:
| Label id | Label |
|---|---|
| 0 | kolkata |
| 1 | state |
| 2 | national |
| 3 | sports |
| 4 | entertainment |
| 5 | international |
You can use this model directly with a pipeline for Sequence Classification:
from transformers import AlbertForSequenceClassification, TextClassificationPipeline, PreTrainedTokenizerFast
# Initialize tokenizer
tokenizer = PreTrainedTokenizerFast.from_pretrained("neuropark/sahajBERT-NCC")
# Initialize model
model = AlbertForSequenceClassification.from_pretrained("neuropark/sahajBERT-NCC")
# Initialize pipeline
pipeline = TextClassificationPipeline(tokenizer=tokenizer, model=model)
raw_text = "এই ইউনিয়নে ৩ টি মৌজা ও ১০ টি গ্রাম আছে ।" # Change me
output = pipeline(raw_text)
WIP
The model was initialized with pre-trained weights of sahajBERT at step 19519 and trained on the sna.bn split of IndicGlue.
Coming soon!
<!-- ```bibtex @inproceedings{..., year={2020} } ``` -->Loss: 0.2477145493030548
Accuracy: 0.926293408929837
Macro F1: 0.9079785326650756
Recall: 0.926293408929837
Weighted F1: 0.9266428029354202
Macro Precision: 0.9109938492260489
Micro Precision: 0.926293408929837
Weighted Precision: 0.9288535478995414
Macro Recall: 0.9069095007692186
Micro Recall: 0.926293408929837
Weighted Recall: 0.926293408929837
Coming soon!
<!-- ```bibtex @inproceedings{..., year={2020} } ``` -->