Commit
•
2c8cd1f
1
Parent(s):
ff4752a
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -28,25 +28,25 @@ ind, khm, lao, mya, tha, vie
|
|
28 |
## Supported Tasks
|
29 |
|
30 |
Summarization
|
31 |
-
|
32 |
## Dataset Usage
|
33 |
### Using `datasets` library
|
34 |
```
|
35 |
-
|
36 |
-
|
37 |
```
|
38 |
### Using `seacrowd` library
|
39 |
```import seacrowd as sc
|
40 |
# Load the dataset using the default config
|
41 |
-
|
42 |
# Check all available subsets (config names) of the dataset
|
43 |
-
|
44 |
# Load the dataset using a specific config
|
45 |
-
|
46 |
```
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
|
51 |
## Dataset Homepage
|
52 |
|
|
|
28 |
## Supported Tasks
|
29 |
|
30 |
Summarization
|
31 |
+
|
32 |
## Dataset Usage
|
33 |
### Using `datasets` library
|
34 |
```
|
35 |
+
from datasets import load_dataset
|
36 |
+
dset = datasets.load_dataset("SEACrowd/lr_sum", trust_remote_code=True)
|
37 |
```
|
38 |
### Using `seacrowd` library
|
39 |
```import seacrowd as sc
|
40 |
# Load the dataset using the default config
|
41 |
+
dset = sc.load_dataset("lr_sum", schema="seacrowd")
|
42 |
# Check all available subsets (config names) of the dataset
|
43 |
+
print(sc.available_config_names("lr_sum"))
|
44 |
# Load the dataset using a specific config
|
45 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
46 |
```
|
47 |
+
|
48 |
+
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).
|
49 |
+
|
50 |
|
51 |
## Dataset Homepage
|
52 |
|