Update README.md
Browse files
README.md
CHANGED
|
@@ -88,6 +88,12 @@ from datasets import load_dataset
|
|
| 88 |
|
| 89 |
ds = load_dataset("luisgasco/profner_classification_master")
|
| 90 |
print(ds["train"][0])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
```
|
| 92 |
|
| 93 |
## ✍️ Author
|
|
|
|
| 88 |
|
| 89 |
ds = load_dataset("luisgasco/profner_classification_master")
|
| 90 |
print(ds["train"][0])
|
| 91 |
+
# Show features
|
| 92 |
+
print(ds["train"].features)
|
| 93 |
+
# Ver etiquetas as strings para un ejemplo:
|
| 94 |
+
example = ds["train"][5]
|
| 95 |
+
print(example["label"]) # IDs
|
| 96 |
+
print(ds["train"].features["label"].int2str(example["label"]))
|
| 97 |
```
|
| 98 |
|
| 99 |
## ✍️ Author
|