Emotion Recognition
Collection
3 items
•
Updated
This model is a fine-tuned version of vinai/phobert-base
on the VSMEC dataset for emotion recognition in Vietnamese text. It achieves competitive performance on this task.
vinai/phobert-base
32
5e-5
100
256
The model was trained on the VSMEC dataset, which contains Vietnamese social media text annotated with emotion labels. The dataset includes the following emotion categories:
{"Anger": 0, "Disgust": 1, "Enjoyment": 2, "Fear": 3, "Other": 4, "Sadness": 5, "Surprise": 6}
.
The model was evaluated using the following metrics:
<INSERT_ACCURACY>
<INSERT_F1_SCORE>
You can use this model for emotion recognition in Vietnamese text. Below is an example of how to use it with the HuggingFace Transformers library:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("visolex/phobert-emotion")
model = AutoModelForSequenceClassification.from_pretrained("visolex/phobert-emotion")
text = "Tôi rất vui vì hôm nay trời đẹp!"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
outputs = model(**inputs)
predicted_class = outputs.logits.argmax(dim=-1).item()
print(f"Predicted emotion: {predicted_class}")
Base model
vinai/phobert-base