rafaelm47labs
commited on
Commit
•
a5ecb4c
1
Parent(s):
8304013
Update README.md
Browse files
README.md
CHANGED
@@ -67,6 +67,7 @@ nlp = TextClassificationPipeline(task = "text-classification",
|
|
67 |
print(nlp(review_text))
|
68 |
|
69 |
```
|
|
|
70 |
```[{'label': 'medio_ambiente', 'score': 0.5648820996284485}]```
|
71 |
|
72 |
### Pytorch
|
@@ -108,7 +109,10 @@ print(f'Review text: {texto}')
|
|
108 |
print(f'Sentiment : {model.config.id2label[prediction.detach().cpu().numpy()[0]]}')
|
109 |
|
110 |
```
|
111 |
-
|
|
|
|
|
|
|
112 |
Sentiment : medio_ambiente```
|
113 |
|
114 |
|
|
|
67 |
print(nlp(review_text))
|
68 |
|
69 |
```
|
70 |
+
|
71 |
```[{'label': 'medio_ambiente', 'score': 0.5648820996284485}]```
|
72 |
|
73 |
### Pytorch
|
|
|
109 |
print(f'Sentiment : {model.config.id2label[prediction.detach().cpu().numpy()[0]]}')
|
110 |
|
111 |
```
|
112 |
+
|
113 |
+
```
|
114 |
+
Review text: las emisiones estan bajando, debido a las medidas ambientales tomadas por el gobierno
|
115 |
+
|
116 |
Sentiment : medio_ambiente```
|
117 |
|
118 |
|