Downloads · 30 days
28
0% of all-time downloads
saribasmetehan/bert-base-turkish-sentiment-analysis
bert-base-turkish-sentiment-analysis is a text classification model from saribasmetehan. 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
28
0% of all-time downloads
All-time downloads
15.2K
Public
Parameters
111M
1.8 GB on disk
Likes
17
Trending 1
Click a slice to open those files.
.safetensors443 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of dbmdz/bert-base-turkish-cased on an winvoker/turkish-sentiment-analysis-dataset (The shuffle function was used with a training dataset of 10,000 data points and a test dataset of 2,000 points.). It achieves the following results on the evaluation set:
Fine-Tuning Process : https://github.com/saribasmetehan/Transformers-Library/blob/main/Turkish_Text_Classifiaction_Fine_Tuning_PyTorch.ipynb
<ul> <li>"Positive" : LABEL_1</li> <li>"Notr" : LABEL_0 </li> <li>"Negative" : LABEL_2</li> </ul>from transformers import pipeline
text = "senden nefret ediyorum"
model_id = "saribasmetehan/bert-base-turkish-sentiment-analysis"
classifer = pipeline("text-classification",model = model_id)
preds= classifer(text)
print(preds)
#[{'label': 'LABEL_2', 'score': 0.7510055303573608}]
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("saribasmetehan/bert-base-turkish-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("saribasmetehan/bert-base-turkish-sentiment-analysis")
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.1902 | 1.0 | 625 | 0.1629 | 0.9575 |
| 0.1064 | 2.0 | 1250 | 0.1790 | 0.96 |
| 0.0631 | 3.0 | 1875 | 0.2358 | 0.96 |
| 0.0146 | 4.0 | 2500 | 0.2458 | 0.962 |