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