Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
---
|
| 4 |
+
# **XLM-R-Large-Tweet**
|
| 5 |
+
|
| 6 |
+
**XLM-R-Large-Tweet** is a version of the [XLM-R-Large-Tweet-Base]( https://huggingface.co/DarijaM/XLM-R-Large-Tweet-base), fine-tuned for sentiment analysis using 5,610 annotated Serbian COVID-19 vaccination-related tweets.
|
| 7 |
+
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.
|
| 8 |
+
|
| 9 |
+
## How to Use
|
| 10 |
+
To use the model, you can load it with the following code:
|
| 11 |
+
|
| 12 |
+
```python
|
| 13 |
+
from transformers import AutoTokenizer, XLMRobertaForSequenceClassification
|
| 14 |
+
|
| 15 |
+
model_name = " DarijaM/XLM-R-Large-Tweet"
|
| 16 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 17 |
+
model = XLMRobertaForSequenceClassification.from_pretrained(model_name)
|