Instructions to use Matupom/wangchan-sentiment-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Matupom/wangchan-sentiment-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Matupom/wangchan-sentiment-ft")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Matupom/wangchan-sentiment-ft") model = AutoModelForSequenceClassification.from_pretrained("Matupom/wangchan-sentiment-ft") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Matupom/wangchan-sentiment-ft")
model = AutoModelForSequenceClassification.from_pretrained("Matupom/wangchan-sentiment-ft")Quick Links
Matupom/wangchan-sentiment-ft
Thai sentiment classification model fine-tuned from airesearch/wangchanberta-base-att-spm-uncased on the Wisesight Sentiment dataset (3-way: pos, neu, neg).
The model is implemented with the Hugging Face Transformers library (AutoModelForSequenceClassification).
Model description
- Model ID:
Matupom/wangchan-sentiment-ft - Base model:
airesearch/wangchanberta-base-att-spm-uncased(RoBERTa-style Thai language model) - Architecture: CamemBERT / RoBERTa encoder with a classification head
- Task: Single-label text classification (sentiment analysis)
- Languages: Thai
Labels
This model uses the following label mapping:
0 โ posโ positive sentiment1 โ neuโ neutral sentiment2 โ negโ negative sentiment
The same mapping is stored in the config as:
model.config.id2label = {0: "pos", 1: "neu", 2: "neg"}
model.config.label2id = {"pos": 0, "neu": 1, "neg": 2}
- Downloads last month
- 47
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Matupom/wangchan-sentiment-ft")