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