parquet-converter
commited on
Commit
·
ff6c30d
1
Parent(s):
33eb32b
Update parquet files
Browse files
.gitattributes
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
train/ filter=lfs diff=lfs merge=lfs -text
|
29 |
-
validation/ filter=lfs diff=lfs merge=lfs -text
|
30 |
-
dataset_dict.json filter=lfs diff=lfs merge=lfs -text
|
31 |
-
korquad_v1.0_train.json filter=lfs diff=lfs merge=lfs -text
|
32 |
-
KorQuAD_v1.0_train.json filter=lfs diff=lfs merge=lfs -text
|
33 |
-
KorQuAD_v1.0_dev.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KorQuADv1.py
DELETED
@@ -1,103 +0,0 @@
|
|
1 |
-
import datasets
|
2 |
-
import pandas as pd
|
3 |
-
|
4 |
-
_DATA_URLS = {
|
5 |
-
"train": "https://korquad.github.io/dataset/KorQuAD_v1.0_train.json",
|
6 |
-
"dev": "https://korquad.github.io/dataset/KorQuAD_v1.0_dev.json",
|
7 |
-
}
|
8 |
-
_VERSION = "0.0.0"
|
9 |
-
_LICENSE = "CC BY-ND 2.0 KR"
|
10 |
-
_CITATION = """\
|
11 |
-
@misc{lim2019korquad1.0,
|
12 |
-
title={KorQuAD1.0: Korean QA Dataset for Machine Reading Comprehension},
|
13 |
-
author={Seungyoung Lim, Myungji Kim, Jooyoul Lee},
|
14 |
-
year={2019},
|
15 |
-
eprint={1909.07005},
|
16 |
-
archivePrefix={arXiv},
|
17 |
-
primaryClass={cs.CL}
|
18 |
-
}
|
19 |
-
"""
|
20 |
-
_HOMEPAGE = "https://korquad.github.io/KorQuad%201.0/"
|
21 |
-
_DESCRIPTION = """\
|
22 |
-
KorQuAD 1.0 (Korean Question Answering Dataset v1.0)
|
23 |
-
KorQuAD 1.0 is a dataset created for Korean Machine Reading Comprehension.
|
24 |
-
The answers to all your questions are made up of some subareas in the corresponding Wikipedia article paragraphs.
|
25 |
-
It is structured in the same way as the Stanford Question Answering Dataset (SQuAD) v1.0.
|
26 |
-
"""
|
27 |
-
|
28 |
-
|
29 |
-
class KorQuADV1Config(datasets.BuilderConfig):
|
30 |
-
def __init__(self, data_url, features, **kwargs):
|
31 |
-
super().__init__(version=datasets.Version(_VERSION, ""), **kwargs)
|
32 |
-
self.features = features
|
33 |
-
self.data_url = data_url
|
34 |
-
|
35 |
-
|
36 |
-
class KorQuADV1(datasets.GeneratorBasedBuilder):
|
37 |
-
DEFAULT_CONFIG_NAME = "korquad"
|
38 |
-
BUILDER_CONFIGS = [
|
39 |
-
KorQuADV1Config(
|
40 |
-
name="korquad",
|
41 |
-
data_url=_DATA_URLS,
|
42 |
-
features=datasets.Features(
|
43 |
-
{
|
44 |
-
"answers": datasets.Sequence(
|
45 |
-
feature={
|
46 |
-
"text": datasets.Value(dtype="string"),
|
47 |
-
"answer_start": datasets.Value(dtype="int32"),
|
48 |
-
},
|
49 |
-
),
|
50 |
-
"context": datasets.Value(dtype="string"),
|
51 |
-
"guid": datasets.Value(dtype="string"),
|
52 |
-
"question": datasets.Value(dtype="string"),
|
53 |
-
"title": datasets.Value(dtype="string"),
|
54 |
-
}
|
55 |
-
)
|
56 |
-
),
|
57 |
-
]
|
58 |
-
|
59 |
-
def _info(self):
|
60 |
-
return datasets.DatasetInfo(
|
61 |
-
features=self.config.features,
|
62 |
-
description=_DESCRIPTION,
|
63 |
-
homepage=_HOMEPAGE,
|
64 |
-
citation=_CITATION,
|
65 |
-
license=_LICENSE,
|
66 |
-
)
|
67 |
-
|
68 |
-
def _split_generators(self, dl_manager):
|
69 |
-
data_path = dl_manager.download(self.config.data_url)
|
70 |
-
return [
|
71 |
-
datasets.SplitGenerator(
|
72 |
-
name=datasets.Split.TRAIN,
|
73 |
-
# These kwargs will be passed to _generate_examples
|
74 |
-
gen_kwargs={"data_file": data_path["train"]}
|
75 |
-
),
|
76 |
-
datasets.SplitGenerator(
|
77 |
-
name=datasets.Split.VALIDATION,
|
78 |
-
# These kwargs will be passed to _generate_examples
|
79 |
-
gen_kwargs={"data_file": data_path["dev"]}
|
80 |
-
),
|
81 |
-
]
|
82 |
-
|
83 |
-
def _generate_examples(self, data_file: str):
|
84 |
-
idx = 0
|
85 |
-
korquad = pd.read_json(data_file)
|
86 |
-
for example in korquad["data"].tolist():
|
87 |
-
paragraphs = example["paragraphs"]
|
88 |
-
title = example["title"]
|
89 |
-
for paragraph in paragraphs:
|
90 |
-
qas = paragraph["qas"]
|
91 |
-
context = paragraph["context"]
|
92 |
-
for qa in qas:
|
93 |
-
text = [answers["text"] for answers in qa["answers"]]
|
94 |
-
answer_start = [answers["answer_start"] for answers in qa["answers"]]
|
95 |
-
features = {
|
96 |
-
"guid": qa["id"],
|
97 |
-
"question": qa["question"],
|
98 |
-
"answers": {"text": text, "answer_start": answer_start},
|
99 |
-
"context": context,
|
100 |
-
"title": title,
|
101 |
-
}
|
102 |
-
yield idx, features
|
103 |
-
idx += 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"korquad": {"description": "KorQuAD 1.0 (Korean Question Answering Dataset v1.0)\nKorQuAD 1.0 is a dataset created for Korean Machine Reading Comprehension.\nThe answers to all your questions are made up of some subareas in the corresponding Wikipedia article paragraphs.\nIt is structured in the same way as the Stanford Question Answering Dataset (SQuAD) v1.0.\n", "citation": "@misc{lim2019korquad1.0,\n title={KorQuAD1.0: Korean QA Dataset for Machine Reading Comprehension},\n author={Seungyoung Lim, Myungji Kim, Jooyoul Lee},\n year={2019},\n eprint={1909.07005},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://korquad.github.io/KorQuad%201.0/", "license": "CC BY-ND 2.0 KR", "features": {"answers": {"feature": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "answer_start": {"dtype": "int32", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}, "context": {"dtype": "string", "id": null, "_type": "Value"}, "guid": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "kor_qu_adv1", "config_name": "korquad", "version": {"version_str": "0.0.0", "description": "", "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 83382906, "num_examples": 60407, "dataset_name": "kor_qu_adv1"}, "validation": {"name": "validation", "num_bytes": 8261968, "num_examples": 5774, "dataset_name": "kor_qu_adv1"}}, "download_checksums": {"https://korquad.github.io/dataset/KorQuAD_v1.0_train.json": {"num_bytes": 38527475, "checksum": "40d5115879a701751781df721d901abfa736d8db5f89000f2619433f39bf2dd2"}, "https://korquad.github.io/dataset/KorQuAD_v1.0_dev.json": {"num_bytes": 3881058, "checksum": "25ffeb51e6c51ec02c071b60a10188e10005c144110f0d876b26079d80a35bdf"}}, "download_size": 42408533, "post_processing_size": null, "dataset_size": 91644874, "size_in_bytes": 134053407}}
|
|
|
|
KorQuAD_v1.0_train.json → korquad/kor_qu_a_dv1-train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f011929ab02acba4c7953352ab53d809c6afd1221bc08da7bb959ae89dc3d65a
|
3 |
+
size 11557113
|
KorQuAD_v1.0_dev.json → korquad/kor_qu_a_dv1-validation.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa533bd68545fa44f048680f2b369de1fcfba11e53971241aea62bc1915f3e0b
|
3 |
+
size 1159599
|