Views
No views yet

| ประเด็น | ป้ายกำกับเชิงบวก (Positive) | ป้ายกำกับเชิงลบ (Negative) |
|---|---|---|
| คุณภาพของสินค้า | Quality | NEG-Quality |
| ระยะเวลาที่ใช้ในการจัดส่ง | DeliveryTime | NEG-DeliveryTime |
| การบริการของร้านค้า | StoreService | NEG-StoreService |
| รูปลักษณ์ของสินค้า | Appearance | NEG-Appearance |
| การแพ็กสินค้า | Packaging | NEG-Packaging |
| ราคาของสินค้า | Price | NEG-Price |
| ขนาดของสินค้า | Size | NEG-Size |
| ไม่เกี่ยวข้องกับประเด็นที่สนใจ | O |
1from transformers import AutoTokenizer, AutoModelForTokenClassification
2from transformers import pipeline
3
4tokenizer = AutoTokenizer.from_pretrained("Keetawan/xlm-roberta-large-aspect-based-sentiment")
5model = AutoModelForTokenClassification.from_pretrained("Keetawan/xlm-roberta-large-aspect-based-sentiment")
6
7nlp = pipeline("token-classification", model=model, tokenizer=tokenizer)
8
9text = "ใส่ประโยคภาษาไทยที่ต้องการวิเคราะห์ที่นี่"
10result = nlp(text)
11
12for item in result:
13 print(item)@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},
}