Downloads · 30 days
32
3% of all-time downloads
Keetawan/xlm-roberta-large-thai-aspect-based-sentiment
xlm-roberta-large-thai-aspect-based-sentiment is a token classification model from Keetawan. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
This is a fine-tuned XLM-RoBERTa-Large model for Aspect-Based Sentiment Analysis in Thai. The model is fine-tuned on a dataset specifically for the task of identifying sentiments related to specific aspects within sen…
Downloads · 30 days
32
3% of all-time downloads
All-time downloads
996
Public
Parameters
559M
6.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.pt4.5 GB · 66%
From the Hugging Face model README
This is a fine-tuned XLM-RoBERTa-Large model for Aspect-Based Sentiment Analysis in Thai. The model is fine-tuned on a dataset specifically for the task of identifying sentiments related to specific aspects within sentences.

This model was the winning model in the Aspect-Based Sentiment Analysis competition of Super AI Engineer Season 4 - Hackathon Online. It achieved the best performance among all participating models, demonstrating its effectiveness in the given task.
XLM-RoBERTa is a large multilingual language model that has been fine-tuned for sequence tagging tasks. This model has been further fine-tuned for Aspect-Based Sentiment Analysis, making it suitable for applications that require understanding of sentiments expressed towards specific aspects within a text.
The model can predict the following classes:
| ประเด็น | ป้ายกำกับเชิงบวก (Positive) | ป้ายกำกับเชิงลบ (Negative) |
|---|---|---|
| คุณภาพของสินค้า | Quality | NEG-Quality |
| ระยะเวลาที่ใช้ในการจัดส่ง | DeliveryTime | NEG-DeliveryTime |
| การบริการของร้านค้า | StoreService | NEG-StoreService |
| รูปลักษณ์ของสินค้า | Appearance | NEG-Appearance |
| การแพ็กสินค้า | Packaging | NEG-Packaging |
| ราคาของสินค้า | Price | NEG-Price |
| ขนาดของสินค้า | Size | NEG-Size |
| ไม่เกี่ยวข้องกับประเด็นที่สนใจ | O |
You can use this model for sequence tagging and aspect-based sentiment analysis in the Thai language. Here is a quick example of how to use it:
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("Keetawan/xlm-roberta-large-aspect-based-sentiment")
model = AutoModelForTokenClassification.from_pretrained("Keetawan/xlm-roberta-large-aspect-based-sentiment")
nlp = pipeline("token-classification", model=model, tokenizer=tokenizer)
text = "ใส่ประโยคภาษาไทยที่ต้องการวิเคราะห์ที่นี่"
result = nlp(text)
for item in result:
print(item)
If you use this model in your research or applications, please cite it as follows:
@misc{keetawan2024aspectsentiment,
author = {Keetawan Limaroon},
title = {XLM-RoBERTa-Large for Aspect-Based Sentiment Analysis in Thai},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/Keetawan/xlm-roberta-large-aspect-based-sentiment},
}