Update README.md
Browse files
README.md
CHANGED
|
@@ -1,11 +1,20 @@
|
|
| 1 |
-
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Bangla Binary Text Classifier
|
| 11 |
|
|
@@ -20,18 +29,29 @@ This is a **Bangla binary sentiment classification** model, fine-tuned on top of
|
|
| 20 |
```python
|
| 21 |
from transformers import pipeline
|
| 22 |
|
| 23 |
-
pipe = pipeline("text-classification", model="SayedShaun/bangla-classifier-
|
| 24 |
|
| 25 |
-
response = pipe("
|
| 26 |
print(response)
|
| 27 |
-
# Output: [{'label': 'LABEL_0', 'score': 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
```
|
| 29 |
|
| 30 |
## Result
|
| 31 |
| Training Loss | Validation Loss | Accuracy | Precision | Recall | F1 Score |
|
| 32 |
|---------------|-----------------|-----------|-----------|----------|-----------|
|
| 33 |
-
| 0.
|
| 34 |
|
| 35 |
|
| 36 |
# Source Code
|
| 37 |
-
Source code can be found in `files and versions` as `finetune.py`
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- bangla
|
| 5 |
+
- bangla-classifier
|
| 6 |
+
- multiclass-classifier
|
| 7 |
+
- text-classifier
|
| 8 |
+
datasets:
|
| 9 |
+
- SayedShaun/sentigold
|
| 10 |
+
language:
|
| 11 |
+
- bn
|
| 12 |
+
metrics:
|
| 13 |
+
- accuracy
|
| 14 |
+
base_model:
|
| 15 |
+
- csebuetnlp/banglabert
|
| 16 |
+
pipeline_tag: text-classification
|
| 17 |
+
---
|
| 18 |
|
| 19 |
# Bangla Binary Text Classifier
|
| 20 |
|
|
|
|
| 29 |
```python
|
| 30 |
from transformers import pipeline
|
| 31 |
|
| 32 |
+
pipe = pipeline("text-classification", model="SayedShaun/bangla-classifier-multiclass")
|
| 33 |
|
| 34 |
+
response = pipe("ডেলিভারি ম্যান খুব যত্ন সহকারে পণ্যটি ডেলিভারি করেছে")
|
| 35 |
print(response)
|
| 36 |
+
# Output: [{'label': 'LABEL_0', 'score': 0.9503920674324036}]
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Tags
|
| 40 |
+
```
|
| 41 |
+
{"SP" :0, "WP": 1, "WN": 2, "SN": 3, "NU": 4}
|
| 42 |
+
|
| 43 |
+
SP: Strongly Positive
|
| 44 |
+
WP: Weakly Positive
|
| 45 |
+
WN: Weakly Positive Negative
|
| 46 |
+
SN: Strongly Negative
|
| 47 |
+
NU: Neutral
|
| 48 |
```
|
| 49 |
|
| 50 |
## Result
|
| 51 |
| Training Loss | Validation Loss | Accuracy | Precision | Recall | F1 Score |
|
| 52 |
|---------------|-----------------|-----------|-----------|----------|-----------|
|
| 53 |
+
| 0.820600 | 0.916846 | 0.646714 | 0.649295 | 0.642749 | 0.643535 |
|
| 54 |
|
| 55 |
|
| 56 |
# Source Code
|
| 57 |
+
Source code can be found in `files and versions` as `finetune.py`
|