Datasets:

Modalities:
Text
Formats:
json
ArXiv:
Libraries:
Datasets
pandas
License:
nayeon212 commited on
Commit
488f141
·
verified ·
1 Parent(s): 30a2ccf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -6
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 >= 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
- import pandas as pd
123
 
124
  # Login using e.g. `huggingface-cli login` to access this dataset
125
- splits = {'DZ': 'data/annotations_hf/Algeria_data.json', 'AS': 'data/annotations_hf/Assam_data.json', 'AZ': 'data/annotations_hf/Azerbaijan_data.json', 'CN': 'data/annotations_hf/China_data.json', 'ET': 'data/annotations_hf/Ethiopia_data.json', 'GR': 'data/annotations_hf/Greece_data.json', 'ID': 'data/annotations_hf/Indonesia_data.json', 'IR': 'data/annotations_hf/Iran_data.json', 'MX': 'data/annotations_hf/Mexico_data.json', 'KP': 'data/annotations_hf/North_Korea_data.json', 'NG': 'data/annotations_hf/Northern_Nigeria_data.json', 'KR': 'data/annotations_hf/South_Korea_data.json', 'ES': 'data/annotations_hf/Spain_data.json', 'GB': 'data/annotations_hf/UK_data.json', 'US': 'data/annotations_hf/US_data.json', 'JB': 'data/annotations_hf/West_Java_data.json'}
126
- df =
127
 
128
  # To access data from Assam:
129
- assam_annotations = pd.read_json("hf://datasets/nayeon212/BLEnD/" + splits["AS"])
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