Text Classification
Transformers
Safetensors
Bengali
electra
bangla
bangla-classifier
binary-classifier
text-classifier
Instructions to use SayedShaun/bangla-classifier-binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SayedShaun/bangla-classifier-binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SayedShaun/bangla-classifier-binary")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SayedShaun/bangla-classifier-binary") model = AutoModelForSequenceClassification.from_pretrained("SayedShaun/bangla-classifier-binary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from SayedShaun/bangla-classifier-binary: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/SayedShaun/bangla-classifier-binary/resolve/main/README.md
- Command line
-
hf download hf://SayedShaun/bangla-classifier-binary/README.md
-
curl -L -o README.md https://huggingface.co/SayedShaun/bangla-classifier-binary/resolve/main/README.md
1.25 kB
metadata
library_name: transformers
tags:
- bangla
- bangla-classifier
- binary-classifier
- text-classifier
datasets:
- SayedShaun/sentigold
language:
- bn
metrics:
- accuracy
base_model:
- csebuetnlp/banglabert
pipeline_tag: text-classification
🔍 Bangla Binary Text Classifier
🧠 Model Description
This is a Bangla binary sentiment classification model, fine-tuned on top of csebuetnlp/banglabert. The model was trained using the SayedShaun/sentigold dataset.
📦 How to Use
from transformers import pipeline
pipe = pipeline("text-classification", model="SayedShaun/bangla-classifier-binary")
response = pipe("এটা যে এত খারাপ আগে জানতাম না।")
print(response)
>>> [{'label': 'LABEL_0', 'score': 0.9765}]
Result
| Training Loss | Validation Loss | Accuracy | Precision | Recall | F1 Score |
|---|---|---|---|---|---|
| 0.354600 | 0.396599 | 0.825143 | 0.812587 | 0.842483 | 0.827265 |
Source Code
Source code can be found in files and versions as finetune.py