MelmaGrigia commited on
Commit
07b6e6a
·
verified ·
1 Parent(s): 345b967

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -4
README.md CHANGED
@@ -18,6 +18,18 @@ should probably proofread and complete it, then remove this comment. -->
18
  # bert-base-italian-xxl-uncased-italian-finetuned-emotions
19
 
20
  This model is a fine-tuned version of [dbmdz/bert-base-italian-xxl-uncased](https://huggingface.co/dbmdz/bert-base-italian-xxl-uncased) on an unknown dataset.
 
 
 
 
 
 
 
 
 
 
 
 
21
  It achieves the following results on the evaluation set:
22
  - Loss: 0.5546
23
  - Accuracy: 0.9877
@@ -25,15 +37,40 @@ It achieves the following results on the evaluation set:
25
 
26
  ## Model description
27
 
28
- More information needed
 
 
29
 
30
  ## Intended uses & limitations
31
 
32
- More information needed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- ## Training and evaluation data
 
 
35
 
36
- More information needed
37
 
38
  ## Training procedure
39
 
 
18
  # bert-base-italian-xxl-uncased-italian-finetuned-emotions
19
 
20
  This model is a fine-tuned version of [dbmdz/bert-base-italian-xxl-uncased](https://huggingface.co/dbmdz/bert-base-italian-xxl-uncased) on an unknown dataset.
21
+ This model is a fine-tuned version of dbmdz/bert-base-italian-xxl-uncased specifically for emotion classification in Italian text. The model is trained to classify text into seven emotions:
22
+
23
+ - Joy
24
+ - Sadness
25
+ - Anger
26
+ - Fear
27
+ - Disgust
28
+ - Surprise
29
+ - Neutral
30
+ -
31
+ It achieves high performance on the evaluation dataset, making it suitable for tasks requiring emotional tone analysis of Italian text.
32
+
33
  It achieves the following results on the evaluation set:
34
  - Loss: 0.5546
35
  - Accuracy: 0.9877
 
37
 
38
  ## Model description
39
 
40
+ Model description
41
+ The model is based on the BERT architecture with an uncased vocabulary and is fine-tuned for emotion detection in Italian texts. It uses the transformer architecture, which relies on attention mechanisms for context comprehension in sequences. This fine-tuned model improves performance for tasks like social media sentiment analysis, customer feedback interpretation, and conversational agents.
42
+
43
 
44
  ## Intended uses & limitations
45
 
46
+ Intended uses & limitations
47
+ Intended uses:
48
+ - Emotion analysis of text in Italian.
49
+ - Sentiment classification for customer service or social media posts.
50
+ - Research in natural language understanding related to emotions in Italian.
51
+ Limitations:
52
+ - The model is fine-tuned on an undisclosed dataset and may not generalize well to certain domains.
53
+ - Emotion detection models might struggle with texts containing sarcasm, irony, or complex multi-emotion sentences.
54
+ -
55
+ Training and evaluation data
56
+ This model was fine-tuned on a custom dataset labeled with seven emotions (joy, sadness, anger, fear, disgust, surprise, neutral). The dataset includes Italian text samples, likely drawn from conversational or written contexts where emotion detection is relevant.
57
+
58
+ # How To Use It
59
+ You can use this model with the transformers library in Python:
60
+
61
+ ```
62
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
63
+ from transformers import pipeline
64
+
65
+ tokenizer = AutoTokenizer.from_pretrained("dbmdz/bert-base-italian-xxl-uncased")
66
+
67
+ model = AutoModelForSequenceClassification.from_pretrained("MelmaGrigia/bert-base-italian-xxl-uncased-italian-finetuned-emotions")
68
 
69
+ classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
70
+ result = classifier("Questo è un testo di esempio.")
71
+ print(result)
72
 
73
+ ```
74
 
75
  ## Training procedure
76