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