|
|
--- |
|
|
license: cc-by-sa-4.0 |
|
|
--- |
|
|
# **XLM-R-BERTić-Tweet** |
|
|
|
|
|
**XLM-R-BERTić-Tweet** is a version of the [XLM-R-BERTić-Tweet-Base](https://huggingface.co/DarijaM/XLM-R-BERTic-Tweet-base)*, fine-tuned for sentiment analysis using 5,610 annotated Serbian COVID-19 vaccination-related tweets. |
|
|
Specifically, it is tailored for **five-class sentiment analysis** to capture finer sentiment nuances in the social media domain using the following scale: very negative, negative, neutral, positive, and very positive. |
|
|
|
|
|
**XLM-R-BERTić-Tweet-Base is based on the [XLM-R-BERTić model](https://huggingface.co/classla/xlm-r-bertic), which has been additionally pretrained for the social media domain.* |
|
|
|
|
|
## How to Use |
|
|
To use the model, you can load it with the following code: |
|
|
|
|
|
```python |
|
|
from transformers import AutoTokenizer, XLMRobertaForSequenceClassification |
|
|
|
|
|
model_name = "DarijaM/XLM-R-BERTic-Tweet" |
|
|
tokenizer = AutoTokenizer.from_pretrained(model_name) |
|
|
model = XLMRobertaForSequenceClassification.from_pretrained(model_name) |