Downloads · 30 days
13
16% of all-time downloads
subba5076/multilingual-sentiment-xlm-roberta
multilingual-sentiment-xlm-roberta is a text classification model from subba5076. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is a fine-tuned version of xlm-roberta-base for multilingual sentiment classification across English, German, and Italian.
Downloads · 30 days
13
16% of all-time downloads
All-time downloads
79
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
This model is a fine-tuned version of xlm-roberta-base for multilingual sentiment classification across English, German, and Italian.
We built this model to classify sentiment into:
0 → Negative1 → Neutral2 → PositiveThis model was fine-tuned using the Amazon Reviews Multilingual Dataset, specifically on the English, German, and Italian subsets.
Training was done using PyTorch and Hugging Face Transformers.
XLMRobertaTokenizernegative: 0, neutral: 1, positive: 2)xlm-roberta-basefrom transformers import pipeline
classifier = pipeline("sentiment-analysis", model="subba5076/multilingual-sentiment-xlm-roberta")
classifier("Der Film war unglaublich schön.") # German
classifier("This phone is terrible.") # English
classifier("È stato un buon acquisto.") # Italian
📊 Evaluation Macro F1-score on test set: 0.81 Confusion matrix and training curves can be shared in future updates.
👨💻 Authors This project was developed as part of a team NLP assignment.
Team Members:
Subrahmanya Rajesh Nayak @subba5076
Rim Tafech
🪪 License This model is licensed under the MIT License.