Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,10 +66,11 @@ hf_openjev_dataset = datasets.load_dataset(path=hf_openjev_dataset_id, cache_dir
|
|
| 66 |
def get_corpus(dataset):
|
| 67 |
total_corpus_list = []
|
| 68 |
for data in dataset:
|
|
|
|
| 69 |
for qno_target in data["qno-target"]:
|
| 70 |
question = qno_target["question"]
|
| 71 |
options = ",".join([option for option in qno_target["options"]])
|
| 72 |
-
total_corpus_list.append(question + options)
|
| 73 |
return total_corpus_list
|
| 74 |
|
| 75 |
curated_dataset_train = hf_openjev_dataset["train"]
|
|
|
|
| 66 |
def get_corpus(dataset):
|
| 67 |
total_corpus_list = []
|
| 68 |
for data in dataset:
|
| 69 |
+
state = data["state"]
|
| 70 |
for qno_target in data["qno-target"]:
|
| 71 |
question = qno_target["question"]
|
| 72 |
options = ",".join([option for option in qno_target["options"]])
|
| 73 |
+
total_corpus_list.append(question + options + state)
|
| 74 |
return total_corpus_list
|
| 75 |
|
| 76 |
curated_dataset_train = hf_openjev_dataset["train"]
|