holylovenia
commited on
Commit
•
2bb5935
1
Parent(s):
fc355b1
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -38,25 +38,25 @@ ind, jav, xdy, bug, sun, mad, bjn, bbc, khek, msa, min, tiociu
|
|
38 |
## Supported Tasks
|
39 |
|
40 |
Machine Translation
|
41 |
-
|
42 |
## Dataset Usage
|
43 |
### Using `datasets` library
|
44 |
```
|
45 |
-
|
46 |
-
|
47 |
```
|
48 |
### Using `seacrowd` library
|
49 |
```import seacrowd as sc
|
50 |
# Load the dataset using the default config
|
51 |
-
|
52 |
# Check all available subsets (config names) of the dataset
|
53 |
-
|
54 |
# Load the dataset using a specific config
|
55 |
-
|
56 |
```
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
|
61 |
## Dataset Homepage
|
62 |
|
|
|
38 |
## Supported Tasks
|
39 |
|
40 |
Machine Translation
|
41 |
+
|
42 |
## Dataset Usage
|
43 |
### Using `datasets` library
|
44 |
```
|
45 |
+
from datasets import load_dataset
|
46 |
+
dset = datasets.load_dataset("SEACrowd/korpus_nusantara", trust_remote_code=True)
|
47 |
```
|
48 |
### Using `seacrowd` library
|
49 |
```import seacrowd as sc
|
50 |
# Load the dataset using the default config
|
51 |
+
dset = sc.load_dataset("korpus_nusantara", schema="seacrowd")
|
52 |
# Check all available subsets (config names) of the dataset
|
53 |
+
print(sc.available_config_names("korpus_nusantara"))
|
54 |
# Load the dataset using a specific config
|
55 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
56 |
```
|
57 |
+
|
58 |
+
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).
|
59 |
+
|
60 |
|
61 |
## Dataset Homepage
|
62 |
|