holylovenia
commited on
Commit
•
bb47278
1
Parent(s):
f320bf9
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -32,25 +32,25 @@ ind, jav, min, sun
|
|
32 |
## Supported Tasks
|
33 |
|
34 |
Machine Translation
|
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 |
Machine Translation
|
35 |
+
|
36 |
## Dataset Usage
|
37 |
### Using `datasets` library
|
38 |
```
|
39 |
+
from datasets import load_dataset
|
40 |
+
dset = datasets.load_dataset("SEACrowd/id_wiki_parallel", 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("id_wiki_parallel", schema="seacrowd")
|
46 |
# Check all available subsets (config names) of the dataset
|
47 |
+
print(sc.available_config_names("id_wiki_parallel"))
|
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 |
|