holylovenia
commited on
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -58,25 +58,25 @@ ace, ban, bcl, blt, bug, ceb, cfm, cnh, ctd, duu, hil, hlt, hni, hnj, ilo, ind,
|
|
58 |
## Supported Tasks
|
59 |
|
60 |
Self Supervised Pretraining
|
61 |
-
|
62 |
## Dataset Usage
|
63 |
### Using `datasets` library
|
64 |
```
|
65 |
-
|
66 |
-
|
67 |
```
|
68 |
### Using `seacrowd` library
|
69 |
```import seacrowd as sc
|
70 |
# Load the dataset using the default config
|
71 |
-
|
72 |
# Check all available subsets (config names) of the dataset
|
73 |
-
|
74 |
# Load the dataset using a specific config
|
75 |
-
|
76 |
```
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
|
81 |
## Dataset Homepage
|
82 |
|
|
|
58 |
## Supported Tasks
|
59 |
|
60 |
Self Supervised Pretraining
|
61 |
+
|
62 |
## Dataset Usage
|
63 |
### Using `datasets` library
|
64 |
```
|
65 |
+
from datasets import load_dataset
|
66 |
+
dset = datasets.load_dataset("SEACrowd/udhr", trust_remote_code=True)
|
67 |
```
|
68 |
### Using `seacrowd` library
|
69 |
```import seacrowd as sc
|
70 |
# Load the dataset using the default config
|
71 |
+
dset = sc.load_dataset("udhr", schema="seacrowd")
|
72 |
# Check all available subsets (config names) of the dataset
|
73 |
+
print(sc.available_config_names("udhr"))
|
74 |
# Load the dataset using a specific config
|
75 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
76 |
```
|
77 |
+
|
78 |
+
More details on how to load the `seacrowd` library can be found [here](https://github.com/SEACrowd/seacrowd-datahub?tab=readme-ov-file#how-to-use).
|
79 |
+
|
80 |
|
81 |
## Dataset Homepage
|
82 |
|