Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -22,25 +22,25 @@ jav, ind
|
|
| 22 |
## Supported Tasks
|
| 23 |
|
| 24 |
Sentiment Analysis, Machine Translation
|
| 25 |
-
|
| 26 |
## Dataset Usage
|
| 27 |
### Using `datasets` library
|
| 28 |
```
|
| 29 |
-
|
| 30 |
-
|
| 31 |
```
|
| 32 |
### Using `seacrowd` library
|
| 33 |
```import seacrowd as sc
|
| 34 |
# Load the dataset using the default config
|
| 35 |
-
|
| 36 |
# Check all available subsets (config names) of the dataset
|
| 37 |
-
|
| 38 |
# Load the dataset using a specific config
|
| 39 |
-
|
| 40 |
```
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
## Dataset Homepage
|
| 46 |
|
|
|
|
| 22 |
## Supported Tasks
|
| 23 |
|
| 24 |
Sentiment Analysis, Machine Translation
|
| 25 |
+
|
| 26 |
## Dataset Usage
|
| 27 |
### Using `datasets` library
|
| 28 |
```
|
| 29 |
+
from datasets import load_dataset
|
| 30 |
+
dset = datasets.load_dataset("SEACrowd/code_mixed_jv_id", trust_remote_code=True)
|
| 31 |
```
|
| 32 |
### Using `seacrowd` library
|
| 33 |
```import seacrowd as sc
|
| 34 |
# Load the dataset using the default config
|
| 35 |
+
dset = sc.load_dataset("code_mixed_jv_id", schema="seacrowd")
|
| 36 |
# Check all available subsets (config names) of the dataset
|
| 37 |
+
print(sc.available_config_names("code_mixed_jv_id"))
|
| 38 |
# Load the dataset using a specific config
|
| 39 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
| 40 |
```
|
| 41 |
+
|
| 42 |
+
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).
|
| 43 |
+
|
| 44 |
|
| 45 |
## Dataset Homepage
|
| 46 |
|