French emotion models
Collection
Classifiers of emotions and their psychological components in French narratives, with their corpus. β’ 3 items β’ Updated
How to use gustavecortal/distilcamembert-cae-all with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gustavecortal/distilcamembert-cae-all") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gustavecortal/distilcamembert-cae-all")
model = AutoModelForSequenceClassification.from_pretrained("gustavecortal/distilcamembert-cae-all", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gustavecortal/distilcamembert-cae-all")
model = AutoModelForSequenceClassification.from_pretrained("gustavecortal/distilcamembert-cae-all", device_map="auto")Gustave Cortal, Alain Finkel, Patrick Paroubek, Lina Ye. May 2023. Emotion Recognition based on Psychological Components in Guided Narratives for Emotion Regulation. In Proceedings of the 7th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature, pages 72β81, Dubrovnik, Croatia. Association for Computational Linguistics.
This model is a fine-tuned version of cmarkea/distilcamembert-base on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| 1.18 | 1.0 | 40 | 0.9901 | 0.6418 | 0.4557 | 0.2991 |
| 0.8718 | 2.0 | 80 | 0.6938 | 0.7667 | 0.7468 | 0.7196 |
| 0.4656 | 3.0 | 120 | 0.6928 | 0.8364 | 0.8354 | 0.8353 |
| 0.2418 | 4.0 | 160 | 0.6008 | 0.8276 | 0.8228 | 0.8228 |
| 0.1285 | 5.0 | 200 | 0.6016 | 0.8510 | 0.8481 | 0.8471 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gustavecortal/distilcamembert-cae-all")