Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -111,22 +111,21 @@ Furthermore, we find that LLMs perform better in their local languages for mid-t
|
|
111 |
|
112 |
## Requirements
|
113 |
```Python
|
114 |
-
datasets
|
115 |
-
pandas
|
116 |
```
|
117 |
|
118 |
## Dataset
|
119 |
All the data samples for short-answer questions, including the human-annotated answers, can be found in the `data/` directory.
|
120 |
Specifically, the annotations from each country are included in the `annotations` split, and each country/region's data can be accessed by **[country codes](https://huggingface.co/datasets/nayeon212/BLEnD#countryregion-codes)**.
|
121 |
```Python
|
122 |
-
|
123 |
|
124 |
# Login using e.g. `huggingface-cli login` to access this dataset
|
125 |
-
|
126 |
-
df =
|
127 |
|
128 |
# To access data from Assam:
|
129 |
-
|
130 |
```
|
131 |
Each file includes a JSON variable with question IDs, questions in the local language and English, the human annotations both in the local language and English, and their respective vote counts as values. The same dataset for South Korea is shown below:
|
132 |
```JSON
|
|
|
111 |
|
112 |
## Requirements
|
113 |
```Python
|
114 |
+
datasets == 2.19.2
|
115 |
+
pandas == 2.1.4
|
116 |
```
|
117 |
|
118 |
## Dataset
|
119 |
All the data samples for short-answer questions, including the human-annotated answers, can be found in the `data/` directory.
|
120 |
Specifically, the annotations from each country are included in the `annotations` split, and each country/region's data can be accessed by **[country codes](https://huggingface.co/datasets/nayeon212/BLEnD#countryregion-codes)**.
|
121 |
```Python
|
122 |
+
from datasets import load_dataset
|
123 |
|
124 |
# Login using e.g. `huggingface-cli login` to access this dataset
|
125 |
+
ds = load_dataset("nayeon212/BLEnD", "short-answer-questions")
|
|
|
126 |
|
127 |
# To access data from Assam:
|
128 |
+
ds_as = ds['AS']
|
129 |
```
|
130 |
Each file includes a JSON variable with question IDs, questions in the local language and English, the human annotations both in the local language and English, and their respective vote counts as values. The same dataset for South Korea is shown below:
|
131 |
```JSON
|