luisgasco commited on
Commit
7d1b5af
·
verified ·
1 Parent(s): 2908d8f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -0
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