holylovenia
commited on
Commit
•
182f226
1
Parent(s):
1e8fef5
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -36,25 +36,25 @@ nrm, jav, min, lao, mya, pag, ind, cbk, tet, tha, ceb, tgl, bjn, bcl, vie
|
|
36 |
## Supported Tasks
|
37 |
|
38 |
Language Identification
|
39 |
-
|
40 |
## Dataset Usage
|
41 |
### Using `datasets` library
|
42 |
```
|
43 |
-
|
44 |
-
|
45 |
```
|
46 |
### Using `seacrowd` library
|
47 |
```import seacrowd as sc
|
48 |
# Load the dataset using the default config
|
49 |
-
|
50 |
# Check all available subsets (config names) of the dataset
|
51 |
-
|
52 |
# Load the dataset using a specific config
|
53 |
-
|
54 |
```
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
|
59 |
## Dataset Homepage
|
60 |
|
|
|
36 |
## Supported Tasks
|
37 |
|
38 |
Language Identification
|
39 |
+
|
40 |
## Dataset Usage
|
41 |
### Using `datasets` library
|
42 |
```
|
43 |
+
from datasets import load_dataset
|
44 |
+
dset = datasets.load_dataset("SEACrowd/wili_2018", trust_remote_code=True)
|
45 |
```
|
46 |
### Using `seacrowd` library
|
47 |
```import seacrowd as sc
|
48 |
# Load the dataset using the default config
|
49 |
+
dset = sc.load_dataset("wili_2018", schema="seacrowd")
|
50 |
# Check all available subsets (config names) of the dataset
|
51 |
+
print(sc.available_config_names("wili_2018"))
|
52 |
# Load the dataset using a specific config
|
53 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
54 |
```
|
55 |
+
|
56 |
+
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).
|
57 |
+
|
58 |
|
59 |
## Dataset Homepage
|
60 |
|