pythainlp/wisesight_sentiment
Viewer • Updated • 26.7k • 776 • 14
How to use Thaweewat/wangchanberta-hyperopt-sentiment-01 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Thaweewat/wangchanberta-hyperopt-sentiment-01") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Thaweewat/wangchanberta-hyperopt-sentiment-01")
model = AutoModelForSequenceClassification.from_pretrained("Thaweewat/wangchanberta-hyperopt-sentiment-01")This model is a fine-tuned version of airesearch/wangchanberta-base-att-spm-uncased on the Wisesight Sentiment dataset. The model is optimized for binary sentiment classification tasks, targeting two labels: positive and negative.
It achieves the following results on the evaluation set:
This model is intended for Thai language sentiment analysis, specifically designed to classify text as either positive or negative.
The model is trained on the Wisesight Sentiment dataset, which is a widely-used dataset for Thai NLP tasks.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 0.55 | 250 | 0.3128 | 0.8859 |
| 0.3913 | 1.09 | 500 | 0.2672 | 0.8942 |
| 0.3913 | 1.64 | 750 | 0.2860 | 0.9025 |
| 0.2172 | 2.19 | 1000 | 0.4044 | 0.9060 |
| 0.2172 | 2.74 | 1250 | 0.3738 | 0.9076 |