mrm8488 commited on
Commit
0440889
1 Parent(s): 87bc382

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: es
3
+ datasets:
4
+ - muchocine
5
+ widget:
6
+ - text: "Una buena película, sin más."
7
+ tags:
8
+ - sentiment
9
+ - analysis
10
+ - spanish
11
+
12
+ ---
13
+ # Electricidad-small fine-tuned for (Spanish) Sentiment Anlalysis 🎞️👍👎
14
+
15
+
16
+ [Electricidad](https://huggingface.co/mrm8488/electricidad-small-discriminator) small fine-tuned on [muchocine](https://huggingface.co/datasets/muchocine) dataset for Spanish **Sentiment Analysis** downstream task.
17
+ ## Fast usage with `pipelines` 🚀
18
+
19
+ ```python
20
+ # pip install -q transformers
21
+
22
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
23
+
24
+ CHKPT = 'mrm8488/electricidad-small-finetuned-muchocine'
25
+ model = AutoModelForSequenceClassification.from_pretrained(CHKPT)
26
+ tokenizer = AutoTokenizer.from_pretrained(CHKPT)
27
+
28
+ from transformers import pipeline
29
+ classifier = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer)
30
+
31
+ # It ranks your comments between 1 and 5 (stars)
32
+
33
+ classifier('Es una obra mestra. Brillante.')
34
+
35
+ classifier('Es una película muy buena.')
36
+
37
+ classifier('Una buena película, sin más.')
38
+
39
+ classifier('Esperaba mucho más.')
40
+
41
+ classifier('He tirado el dinero. Una basura. Vergonzoso.')
42
+ ```