camilum commited on
Commit
03c9182
·
verified ·
1 Parent(s): 4fa343e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -3
README.md CHANGED
@@ -1,3 +1,43 @@
1
- ---
2
- license: unknown
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: unknown
3
+ language:
4
+ - es
5
+ ---
6
+
7
+ # Spanish Emotion Classification
8
+
9
+ ## Usage
10
+
11
+ Does not work. Probably because [RoBERTa Base BNE from PlanTL-GOB-ES](https://huggingface.co/PlanTL-GOB-ES/roberta-base-bne) is deprecated.
12
+
13
+ ```python
14
+ from transformers import pipeline
15
+
16
+ pipe = pipeline("text-classification",
17
+ model = "/tmp/emotions/marIA/",
18
+ tokenizer = "PlanTL-GOB-ES/roberta-base-bne", # NOTE Do not delete this
19
+ padding = True,
20
+ truncation = "longest_first",
21
+ top_k = None,
22
+ )
23
+
24
+ print(list(pipe("estoy triste")))
25
+ print(list(pipe("estoy triste " * 1024)))
26
+ ```
27
+
28
+ ### Output
29
+
30
+ Error. No output.
31
+
32
+ ## Dependencies
33
+
34
+ - Python 3.10.15
35
+ - Transformers 4.50.3
36
+ - Torch 2.6.0
37
+
38
+ requirements.txt:
39
+
40
+ ```
41
+ transformers==4.50.3
42
+ torch==2.6.0
43
+ ```