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