holylovenia
commited on
Commit
•
aa95ebb
1
Parent(s):
941a670
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -32,25 +32,25 @@ ind, jav, sun, ace, ban, bbc, bjn, min, nij, tha, vie
|
|
32 |
## Supported Tasks
|
33 |
|
34 |
Instruction Tuning
|
35 |
-
|
36 |
## Dataset Usage
|
37 |
### Using `datasets` library
|
38 |
```
|
39 |
-
|
40 |
-
|
41 |
```
|
42 |
### Using `seacrowd` library
|
43 |
```import seacrowd as sc
|
44 |
# Load the dataset using the default config
|
45 |
-
|
46 |
# Check all available subsets (config names) of the dataset
|
47 |
-
|
48 |
# Load the dataset using a specific config
|
49 |
-
|
50 |
```
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
|
55 |
## Dataset Homepage
|
56 |
|
|
|
32 |
## Supported Tasks
|
33 |
|
34 |
Instruction Tuning
|
35 |
+
|
36 |
## Dataset Usage
|
37 |
### Using `datasets` library
|
38 |
```
|
39 |
+
from datasets import load_dataset
|
40 |
+
dset = datasets.load_dataset("SEACrowd/aya_collection_templated", trust_remote_code=True)
|
41 |
```
|
42 |
### Using `seacrowd` library
|
43 |
```import seacrowd as sc
|
44 |
# Load the dataset using the default config
|
45 |
+
dset = sc.load_dataset("aya_collection_templated", schema="seacrowd")
|
46 |
# Check all available subsets (config names) of the dataset
|
47 |
+
print(sc.available_config_names("aya_collection_templated"))
|
48 |
# Load the dataset using a specific config
|
49 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
50 |
```
|
51 |
+
|
52 |
+
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).
|
53 |
+
|
54 |
|
55 |
## Dataset Homepage
|
56 |
|