David
commited on
Commit
·
81d1955
1
Parent(s):
f89da46
Update README.md
Browse files
README.md
CHANGED
|
@@ -30,8 +30,19 @@ classifier(
|
|
| 30 |
candidate_labels=["cultura", "sociedad", "economia", "salud", "deportes"],
|
| 31 |
hypothesis_template="Este ejemplo es {}."
|
| 32 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
```
|
| 34 |
|
|
|
|
|
|
|
| 35 |
## Metrics
|
| 36 |
|
| 37 |
| Model | Params | XNLI (acc) | \*MLSUM (acc) |
|
|
|
|
| 30 |
candidate_labels=["cultura", "sociedad", "economia", "salud", "deportes"],
|
| 31 |
hypothesis_template="Este ejemplo es {}."
|
| 32 |
)
|
| 33 |
+
"""Output
|
| 34 |
+
{'sequence': 'El autor se perfila, a los 50 años de su muerte, como uno de los grandes de su siglo',
|
| 35 |
+
'labels': ['sociedad', 'cultura', 'economia', 'salud', 'deportes'],
|
| 36 |
+
'scores': [0.6450043320655823,
|
| 37 |
+
0.16710571944713593,
|
| 38 |
+
0.08507631719112396,
|
| 39 |
+
0.0759836807847023,
|
| 40 |
+
0.026829993352293968]}
|
| 41 |
+
"""
|
| 42 |
```
|
| 43 |
|
| 44 |
+
The `hypothesis_template` parameter is important and should be in Spanish. **In the widget on the right, this parameter is set to its default value: "This example is {}.", so different results are expected.**
|
| 45 |
+
|
| 46 |
## Metrics
|
| 47 |
|
| 48 |
| Model | Params | XNLI (acc) | \*MLSUM (acc) |
|