holylovenia
commited on
Commit
•
c7fc4c8
1
Parent(s):
c35e53f
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -47,25 +47,25 @@ ace, ban, bbc, bew, bjn, bts, btx, bug, cnh, hil, iba, ilo, kac, lus, mad, mak,
|
|
47 |
## Supported Tasks
|
48 |
|
49 |
Machine Translation
|
50 |
-
|
51 |
## Dataset Usage
|
52 |
### Using `datasets` library
|
53 |
```
|
54 |
-
|
55 |
-
|
56 |
```
|
57 |
### Using `seacrowd` library
|
58 |
```import seacrowd as sc
|
59 |
# Load the dataset using the default config
|
60 |
-
|
61 |
# Check all available subsets (config names) of the dataset
|
62 |
-
|
63 |
# Load the dataset using a specific config
|
64 |
-
|
65 |
```
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
|
70 |
## Dataset Homepage
|
71 |
|
|
|
47 |
## Supported Tasks
|
48 |
|
49 |
Machine Translation
|
50 |
+
|
51 |
## Dataset Usage
|
52 |
### Using `datasets` library
|
53 |
```
|
54 |
+
from datasets import load_dataset
|
55 |
+
dset = datasets.load_dataset("SEACrowd/gatitos", trust_remote_code=True)
|
56 |
```
|
57 |
### Using `seacrowd` library
|
58 |
```import seacrowd as sc
|
59 |
# Load the dataset using the default config
|
60 |
+
dset = sc.load_dataset("gatitos", schema="seacrowd")
|
61 |
# Check all available subsets (config names) of the dataset
|
62 |
+
print(sc.available_config_names("gatitos"))
|
63 |
# Load the dataset using a specific config
|
64 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
65 |
```
|
66 |
+
|
67 |
+
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).
|
68 |
+
|
69 |
|
70 |
## Dataset Homepage
|
71 |
|