Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -88,3 +88,26 @@ Each instance in the dataset contains the following primary fields:
|
|
88 |
* `task_id` or `question_id_original`: Original identifier for the question/task.
|
89 |
* `correct_answer`: The correct option label, if applicable (e.g., for problem-solving tasks).
|
90 |
* Other dataset-specific information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
* `task_id` or `question_id_original`: Original identifier for the question/task.
|
89 |
* `correct_answer`: The correct option label, if applicable (e.g., for problem-solving tasks).
|
90 |
* Other dataset-specific information.
|
91 |
+
|
92 |
+
|
93 |
+
## How to Use
|
94 |
+
|
95 |
+
You can load SimBench using the `datasets` library. Since the data is stored in `.pkl` files, ensure you have a local copy of the dataset loading script (typically `SimBench.py` or the name of your dataset on the Hub) in your working directory or Python path if `datasets` cannot automatically find it for this format.
|
96 |
+
|
97 |
+
```python
|
98 |
+
from datasets import load_dataset
|
99 |
+
|
100 |
+
# Load the 'default' configuration which contains both SimBenchPop and SimBenchGrouped
|
101 |
+
simbench_data_dict = load_dataset("pitehu/SimBench", name="default")
|
102 |
+
|
103 |
+
# Access SimBenchPop
|
104 |
+
simbench_pop = simbench_data_dict["SimBenchPop"]
|
105 |
+
|
106 |
+
# Access SimBenchGrouped
|
107 |
+
simbench_grouped = simbench_data_dict["SimBenchGrouped"]
|
108 |
+
|
109 |
+
# Example: Accessing the first instance in SimBenchPop
|
110 |
+
instance = simbench_pop[0]
|
111 |
+
print(instance)
|
112 |
+
|
113 |
+
|