File size: 3,721 Bytes
f68fadb 98fa925 a431f19 2996974 614dcd2 98fa925 614dcd2 98fa925 614dcd2 f68fadb 2996974 f68fadb 00bd0a4 202757c fdc4545 f68fadb 614dcd2 f68fadb 8f67e02 e458582 c499085 7d75e6d a902e6f c499085 caebbf6 c499085 a902e6f f68fadb 4322609 f68fadb 4322609 f68fadb 4322609 f68fadb 4322609 f68fadb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
---
language:
- fr
widget:
- text: je commence à me sentir déprimé
- text: je me sentirais honoré et béni
- text: je réalise que jai des amis je suis surpris
- text: quand jai failli me faire tabasser par le frère de ma copine
pipeline_tag: text-classification
tags:
- CamemBERT
- emotion
- text-classification
- pytorch
- latest
datasets:
- botdevringring/FR_emotion_classification
- dair-ai/emotion
metrics:
- Accuracy, F1 Score
model-index:
- name: botdevringring/fr-naxai-ai-emotion-classification-081808122023
results:
- task:
type: text-classification
name: Text Classification
dataset:
name: emotion
type: emotion
config: default
split: test
metrics:
- type: accuracy
value: 0.896
name: Accuracy
verified: true
- type: precision
value: 0.897
name: Precision Macro
verified: true
- type: precision
value: 0.896
name: Precision Micro
verified: true
- type: precision
value: 0.897
name: Precision Weighted
verified: true
- type: recall
value: 0.896
name: Recall Macro
verified: true
- type: recall
value: 0.896
name: Recall Micro
verified: true
- type: recall
value: 0.896
name: Recall Weighted
verified: true
- type: f1
value: 0.896
name: F1 Macro
verified: true
- type: f1
value: 0.895
name: F1 Micro
verified: true
- type: f1
value: 0.895
name: F1 Weighted
verified: true
---
botdevringring/fr-naxai-ai-emotion-classification-081808122023(latest)
===============
The model is trained on the emotion classification task in the **French** language. It uses 6 labels:
- LABEL 0 : ***sadness***
- LABEL 1 : ***joy***
- LABEL 2 : ***love***
- LABEL 3 : ***anger***
- LABEL 4 : ***fear***
- LABEL 5 : ***surprise***
This model is finetuned from [distilcamembert-base](https://huggingface.co/cmarkea/distilcamembert-base).
A distillation version of the [CamemBERT](https://huggingface.co/camembert-base) model, a RoBERTa French model version.
## Model Details
- Language: fr
- Problem type: Multi-class Classification
- Model Architecture: CamemBERT
- Model Name: fr-naxai-ai-emotion-classification-081808122023
- Creation date:
## Classification Report:
| **Label** | **Precision** | **Recall** | **f1-Score** | **Support** |
|-------------:|---------------:|-----------:|-------------:|------------:|
| anger | 0.91 | 0.91 | 0.91 | 2824 |
| fear | 0.89 | 0.87 | 0.88 | 2824 |
| joy | 0.91 | 0.82 | 0.87 | 2824 |
| love | 0.88 | 0.92 | 0.90 | 2824 |
| sadness | 0.93 | 0.90 | 0.91 | 2823 |
| surprise | 0.89 | 0.98 | 0.93 | 2824 |
## How to use this model
------------------------------------
You can use Python to access this model:
```python
from transformers import pipeline
analyzer = pipeline(
task='text-classification',
model='botdevringring/fr-naxai-ai-emotion-classification-081808122023',
tokenizer='botdevringring/fr-naxai-ai-emotion-classification-081808122023'
)
result = analyzer(
"je commence à me sentir déprimé"
)
result
[
{
'label': 'sadness',
'score': 0.999739944934845
}
]
```
Or you can use cURL:
```
curl https://api-inference.huggingface.co/models/botdevringring/fr-naxai-ai-emotion-classification-081808122023 \
-X POST \
-d '{"inputs": "je commence à me sentir déprimé"}' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <Your HF API token>"
```
## Acknowledgements
Model trained by [Eduardo Brigham](https://www.linkedin.com/in/eduardobrigham/) for [Naxai](https://www.naxai.com/) powered by [The Ring Ring Company](https://www.ringring.be/) |