Instructions to use LEIA/LEIA-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LEIA/LEIA-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="LEIA/LEIA-multilingual")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("LEIA/LEIA-multilingual") model = AutoModelForSequenceClassification.from_pretrained("LEIA/LEIA-multilingual") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,8 +12,9 @@ widget:
|
|
| 12 |
- text: "You wont believe what happened to me today :)"
|
| 13 |
- text: "You wont believe what happened to me today :("
|
| 14 |
---
|
| 15 |
-
This is an emotion classification model based on fine-tuning of a Bernice model
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
## Evaluation
|
| 19 |
We evaluated LEIA-multilingual on Vent posts with self-annotated emotion labels identified as non-English using an ensemble of language identefication tools.
|
|
|
|
| 12 |
- text: "You wont believe what happened to me today :)"
|
| 13 |
- text: "You wont believe what happened to me today :("
|
| 14 |
---
|
| 15 |
+
This is an emotion classification model based on fine-tuning of a Bernice model, which is a pre-trained model trained on multilingual Twitter data.
|
| 16 |
+
The fine-tuning dataset is a subset of the self-labeled emotion dataset (Lykousas et al., 2019) in English that corresponds to Anger, Fear, Sadness, Joy, and Affection.
|
| 17 |
+
See the paper, [LEIA: Linguistic Embeddings for the Identification of Affect](https://doi.org/10.1140/epjds/s13688-023-00427-0) for further details.
|
| 18 |
|
| 19 |
## Evaluation
|
| 20 |
We evaluated LEIA-multilingual on Vent posts with self-annotated emotion labels identified as non-English using an ensemble of language identefication tools.
|