holylovenia
commited on
Commit
•
61807ca
1
Parent(s):
91a29c5
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -17,25 +17,25 @@ eng, ind
|
|
17 |
## Supported Tasks
|
18 |
|
19 |
|
20 |
-
|
21 |
## Dataset Usage
|
22 |
### Using `datasets` library
|
23 |
```
|
24 |
-
|
25 |
-
|
26 |
```
|
27 |
### Using `seacrowd` library
|
28 |
```import seacrowd as sc
|
29 |
# Load the dataset using the default config
|
30 |
-
|
31 |
# Check all available subsets (config names) of the dataset
|
32 |
-
|
33 |
# Load the dataset using a specific config
|
34 |
-
|
35 |
```
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
|
40 |
## Dataset Homepage
|
41 |
|
|
|
17 |
## Supported Tasks
|
18 |
|
19 |
|
20 |
+
|
21 |
## Dataset Usage
|
22 |
### Using `datasets` library
|
23 |
```
|
24 |
+
from datasets import load_dataset
|
25 |
+
dset = datasets.load_dataset("SEACrowd/oil", trust_remote_code=True)
|
26 |
```
|
27 |
### Using `seacrowd` library
|
28 |
```import seacrowd as sc
|
29 |
# Load the dataset using the default config
|
30 |
+
dset = sc.load_dataset("oil", schema="seacrowd")
|
31 |
# Check all available subsets (config names) of the dataset
|
32 |
+
print(sc.available_config_names("oil"))
|
33 |
# Load the dataset using a specific config
|
34 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
35 |
```
|
36 |
+
|
37 |
+
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).
|
38 |
+
|
39 |
|
40 |
## Dataset Homepage
|
41 |
|