holylovenia
commited on
Commit
•
8cefc4a
1
Parent(s):
f89e4ca
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -26,25 +26,25 @@ tha
|
|
26 |
## Supported Tasks
|
27 |
|
28 |
Optical Character Recognition
|
29 |
-
|
30 |
## Dataset Usage
|
31 |
### Using `datasets` library
|
32 |
```
|
33 |
-
|
34 |
-
|
35 |
```
|
36 |
### Using `seacrowd` library
|
37 |
```import seacrowd as sc
|
38 |
# Load the dataset using the default config
|
39 |
-
|
40 |
# Check all available subsets (config names) of the dataset
|
41 |
-
|
42 |
# Load the dataset using a specific config
|
43 |
-
|
44 |
```
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
|
49 |
## Dataset Homepage
|
50 |
|
|
|
26 |
## Supported Tasks
|
27 |
|
28 |
Optical Character Recognition
|
29 |
+
|
30 |
## Dataset Usage
|
31 |
### Using `datasets` library
|
32 |
```
|
33 |
+
from datasets import load_dataset
|
34 |
+
dset = datasets.load_dataset("SEACrowd/alice_thi", trust_remote_code=True)
|
35 |
```
|
36 |
### Using `seacrowd` library
|
37 |
```import seacrowd as sc
|
38 |
# Load the dataset using the default config
|
39 |
+
dset = sc.load_dataset("alice_thi", schema="seacrowd")
|
40 |
# Check all available subsets (config names) of the dataset
|
41 |
+
print(sc.available_config_names("alice_thi"))
|
42 |
# Load the dataset using a specific config
|
43 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
44 |
```
|
45 |
+
|
46 |
+
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).
|
47 |
+
|
48 |
|
49 |
## Dataset Homepage
|
50 |
|