shmuhammad/AfriSenti-twitter-sentiment
Viewer • Updated • 112k • 928 • 9
How to use Fah-d/xlm-yoruba-tweets-classifications with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Fah-d/xlm-yoruba-tweets-classifications") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Fah-d/xlm-yoruba-tweets-classifications")
model = AutoModelForSequenceClassification.from_pretrained("Fah-d/xlm-yoruba-tweets-classifications")This model is a fine-tuned version of xlm-roberta-base on an shmuhammad/AfriSenti-twitter-sentiment It achieves the following results on the evaluation set:
This model is a fine-tuned version of the xlm-roberta-base pre-trained model, specifically trained on the shmuhammad/AfriSenti-twitter-sentiment dataset focusing on Yoruba tweets. It aims to perform sentiment classification on Yoruba tweets.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.9621 | 1.0 | 1066 | 0.9099 | 0.6120 |
| 0.8269 | 2.0 | 2132 | 0.7536 | 0.6627 |
| 0.7239 | 3.0 | 3198 | 0.7641 | 0.6871 |
Base model
FacebookAI/xlm-roberta-base