How to use from the
Use from the
Transformers library
# 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")
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 sentiment
  • 1 โ†’ neu โ€“ neutral sentiment
  • 2 โ†’ 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
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Matupom/wangchan-sentiment-ft

Finetuned
(58)
this model