Update README for download
Browse files
README.md
CHANGED
@@ -38,11 +38,14 @@ The questions test the understanding of Buddhist principles through analytical t
|
|
38 |
|
39 |
## Usage
|
40 |
|
|
|
|
|
41 |
```py
|
42 |
from datasets import load_dataset
|
43 |
|
44 |
-
exam_dataset = load_dataset("biodatlab/thai_buddhist_studies_exam") #
|
45 |
-
exam_dataset["
|
|
|
46 |
```
|
47 |
|
48 |
```py
|
|
|
38 |
|
39 |
## Usage
|
40 |
|
41 |
+
You can use `datasets` to download exam in all years as shown below or download individual CSV file from `data` folder.
|
42 |
+
|
43 |
```py
|
44 |
from datasets import load_dataset
|
45 |
|
46 |
+
exam_dataset = load_dataset("biodatlab/thai_buddhist_studies_exam") # all exam
|
47 |
+
exam_dataset_2023 = exam_dataset.filter(lambda e: e["year"] == 2023) # filter only the latest year
|
48 |
+
exam_dataset_2023["train"][0] # no data splitting, only train
|
49 |
```
|
50 |
|
51 |
```py
|