Datasets:
Tasks:
Question Answering
Modalities:
Text
Sub-tasks:
extractive-qa
Languages:
English
Size:
10K - 100K
ArXiv:
License:
parquet-converter
commited on
Commit
·
0d12046
1
Parent(s):
1a87807
Update parquet files
Browse files- .DS_Store +0 -0
- .gitattributes +0 -39
- Generate_JSON_From_TSV.py +0 -62
- README.md +0 -26
- lifestyle/{dev_qas.forum.jsonl → lotte-forum_dev.parquet} +2 -2
- lifestyle/{dev_qas.search.jsonl → lotte-forum_test.parquet} +2 -2
- lifestyle/{test_qas.forum.jsonl → lotte-search_dev.parquet} +2 -2
- lifestyle/{test_qas.search.jsonl → lotte-search_test.parquet} +2 -2
- lotte.py +0 -206
- pooled/dev_qas.forum.jsonl +0 -3
- pooled/dev_qas.search.jsonl +0 -3
- pooled/lotte-forum_dev.parquet +3 -0
- pooled/lotte-forum_test.parquet +3 -0
- pooled/lotte-search_dev.parquet +3 -0
- pooled/lotte-search_test.parquet +3 -0
- pooled/test_qas.forum.jsonl +0 -3
- pooled/test_qas.search.jsonl +0 -3
- recreation/dev_qas.forum.jsonl +0 -3
- recreation/dev_qas.search.jsonl +0 -3
- recreation/lotte-forum_dev.parquet +3 -0
- recreation/lotte-forum_test.parquet +3 -0
- recreation/lotte-search_dev.parquet +3 -0
- recreation/lotte-search_test.parquet +3 -0
- recreation/test_qas.forum.jsonl +0 -3
- recreation/test_qas.search.jsonl +0 -3
- science/dev_qas.forum.jsonl +0 -3
- science/dev_qas.search.jsonl +0 -3
- science/lotte-forum_dev.parquet +3 -0
- science/lotte-forum_test.parquet +3 -0
- science/lotte-search_dev.parquet +3 -0
- science/lotte-search_test.parquet +3 -0
- science/test_qas.forum.jsonl +0 -3
- science/test_qas.search.jsonl +0 -3
- technology/dev_qas.forum.jsonl +0 -3
- technology/dev_qas.search.jsonl +0 -3
- technology/lotte-forum_dev.parquet +3 -0
- technology/lotte-forum_test.parquet +3 -0
- technology/lotte-search_dev.parquet +3 -0
- technology/lotte-search_test.parquet +3 -0
- technology/test_qas.forum.jsonl +0 -3
- technology/test_qas.search.jsonl +0 -3
- writing/dev_qas.forum.jsonl +0 -3
- writing/dev_qas.search.jsonl +0 -3
- writing/lotte-forum_dev.parquet +3 -0
- writing/lotte-forum_test.parquet +3 -0
- writing/lotte-search_dev.parquet +3 -0
- writing/lotte-search_test.parquet +3 -0
- writing/test_qas.forum.jsonl +0 -3
- writing/test_qas.search.jsonl +0 -3
.DS_Store
DELETED
Binary file (14.3 kB)
|
|
.gitattributes
DELETED
@@ -1,39 +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 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
19 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.wasm 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 |
-
# Audio files - uncompressed
|
29 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
32 |
-
# Audio files - compressed
|
33 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
38 |
-
*.json filter=lfs diff=lfs merge=lfs -text
|
39 |
-
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Generate_JSON_From_TSV.py
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
|
2 |
-
import pandas as pd
|
3 |
-
import os
|
4 |
-
from tqdm import tqdm
|
5 |
-
import json
|
6 |
-
import shutil
|
7 |
-
|
8 |
-
directories = ['lifestyle', 'pooled', 'recreation', 'science', 'technology', 'writing'] #os.listdir()
|
9 |
-
|
10 |
-
for directory in directories:
|
11 |
-
|
12 |
-
print("Starting " + directory)
|
13 |
-
|
14 |
-
for file_type in ["dev", "test"]:
|
15 |
-
|
16 |
-
for question_type in ["qas.forum.jsonl", "qas.search.jsonl"]:
|
17 |
-
|
18 |
-
if directory != 'pooled':
|
19 |
-
|
20 |
-
with open('data/' + directory + "/" + file_type + "/metadata.jsonl", 'r', encoding="utf-8") as json_file:
|
21 |
-
metadata = list(json_file)
|
22 |
-
|
23 |
-
question_id_to_author = {}
|
24 |
-
|
25 |
-
for json_str in metadata:
|
26 |
-
current_row = json.loads(json_str)
|
27 |
-
question_id_to_author[current_row["question_id"]] = current_row["question_author"]
|
28 |
-
|
29 |
-
else:
|
30 |
-
|
31 |
-
question_id_to_author = {}
|
32 |
-
|
33 |
-
########################################################
|
34 |
-
|
35 |
-
with open(directory + "/" + file_type + "_" + question_type, 'r', encoding="utf-8") as json_file:
|
36 |
-
json_list = list(json_file)
|
37 |
-
|
38 |
-
revised_jsonl = []
|
39 |
-
|
40 |
-
for json_str in tqdm(json_list):
|
41 |
-
current_row = json.loads(json_str)
|
42 |
-
try:
|
43 |
-
current_row["question_author"] = question_id_to_author[current_row['qid']]
|
44 |
-
except:
|
45 |
-
current_row["question_author"] = ""
|
46 |
-
revised_jsonl.append(current_row)
|
47 |
-
|
48 |
-
########################################################
|
49 |
-
|
50 |
-
if not os.path.isdir(directory):
|
51 |
-
os.mkdir(directory)
|
52 |
-
|
53 |
-
with open(directory + "/" + file_type + "_" + question_type, 'w', encoding="utf-8") as outfile:
|
54 |
-
for entry in revised_jsonl:
|
55 |
-
json.dump(entry, outfile)
|
56 |
-
outfile.write('\n')
|
57 |
-
|
58 |
-
#with open(directory + "/" + file_type + question_type, 'w', encoding="utf-8") as fout:
|
59 |
-
# json.dump(data, fout)
|
60 |
-
|
61 |
-
#shutil.move('data/' + directory + "/" + file_type + "/" + question_type,
|
62 |
-
# directory + "/" + file_type + "_" + question_type)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- no-annotation
|
4 |
-
language:
|
5 |
-
- en
|
6 |
-
language_creators:
|
7 |
-
- found
|
8 |
-
license:
|
9 |
-
- apache-2.0
|
10 |
-
multilinguality:
|
11 |
-
- monolingual
|
12 |
-
pretty_name: 'Lotte queries from ColBERTv2: Effective and Efficient Retrieval via
|
13 |
-
Lightweight Late Interaction'
|
14 |
-
size_categories:
|
15 |
-
- 10K<n<100K
|
16 |
-
source_datasets:
|
17 |
-
- original
|
18 |
-
tags: []
|
19 |
-
task_categories:
|
20 |
-
- question-answering
|
21 |
-
task_ids:
|
22 |
-
- extractive-qa
|
23 |
-
---
|
24 |
-
|
25 |
-
Queries for Lotte dataset from [ColBERTv2: Effective and Efficient Retrieval via
|
26 |
-
Lightweight Late Interaction](https://arxiv.org/abs/2112.01488)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lifestyle/{dev_qas.forum.jsonl → lotte-forum_dev.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:c653d89927e757a5a14c9348c05a4cc5cf338aaa8023c7f6d40152bc750db4ab
|
3 |
+
size 199085
|
lifestyle/{dev_qas.search.jsonl → lotte-forum_test.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:99f18a841a9e996f94ae62e35695edc82986b45862a6b0cb78379b9a8eb94f8b
|
3 |
+
size 181834
|
lifestyle/{test_qas.forum.jsonl → lotte-search_dev.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:a3bb77de6108b86027ce7c3eb9d799f5b97be685071af818e0f618d4bd91f0c6
|
3 |
+
size 25667
|
lifestyle/{test_qas.search.jsonl → lotte-search_test.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:4f5983c0c4ed1d1648ad2a11f16ed03eea3eae5e453835f15916edd59778ad4f
|
3 |
+
size 33513
|
lotte.py
DELETED
@@ -1,206 +0,0 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
4 |
-
#
|
5 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
# you may not use this file except in compliance with the License.
|
7 |
-
# You may obtain a copy of the License at
|
8 |
-
#
|
9 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
#
|
11 |
-
# Unless required by applicable law or agreed to in writing, software
|
12 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
# See the License for the specific language governing permissions and
|
15 |
-
# limitations under the License.
|
16 |
-
# TODO: Address all TODOs and remove all explanatory comments
|
17 |
-
"""TODO: Add a description here."""
|
18 |
-
|
19 |
-
|
20 |
-
import csv
|
21 |
-
import json
|
22 |
-
import os
|
23 |
-
|
24 |
-
import datasets
|
25 |
-
import pandas as pd
|
26 |
-
import zipfile
|
27 |
-
|
28 |
-
|
29 |
-
# TODO: Add BibTeX citation
|
30 |
-
# Find for instance the citation on arxiv or on the dataset repo/website
|
31 |
-
_CITATION = """\
|
32 |
-
@inproceedings{santhanam-etal-2022-colbertv2,
|
33 |
-
title = "{C}ol{BERT}v2: Effective and Efficient Retrieval via Lightweight Late Interaction",
|
34 |
-
author = "Santhanam, Keshav and
|
35 |
-
Khattab, Omar and
|
36 |
-
Saad-Falcon, Jon and
|
37 |
-
Potts, Christopher and
|
38 |
-
Zaharia, Matei",
|
39 |
-
booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
|
40 |
-
month = jul,
|
41 |
-
year = "2022",
|
42 |
-
address = "Seattle, United States",
|
43 |
-
publisher = "Association for Computational Linguistics",
|
44 |
-
url = "https://aclanthology.org/2022.naacl-main.272",
|
45 |
-
pages = "3715--3734",
|
46 |
-
abstract = "Neural information retrieval (IR) has greatly advanced search and other knowledge-intensive language tasks. While many neural IR methods encode queries and documents into single-vector representations, late interaction models produce multi-vector representations at the granularity of each token and decompose relevance modeling into scalable token-level computations. This decomposition has been shown to make late interaction more effective, but it inflates the space footprint of these models by an order of magnitude. In this work, we introduce Maize, a retriever that couples an aggressive residual compression mechanism with a denoised supervision strategy to simultaneously improve the quality and space footprint of late interaction. We evaluate Maize across a wide range of benchmarks, establishing state-of-the-art quality within and outside the training domain while reducing the space footprint of late interaction models by 6{--}10x.",
|
47 |
-
}
|
48 |
-
"""
|
49 |
-
|
50 |
-
# TODO: Add description of the dataset here
|
51 |
-
# You can copy an official description
|
52 |
-
_DESCRIPTION = """\
|
53 |
-
LoTTE Passages Dataset for ColBERTv2
|
54 |
-
"""
|
55 |
-
|
56 |
-
# TODO: Add a link to an official homepage for the dataset here
|
57 |
-
_HOMEPAGE = "https://huggingface.co/datasets/colbertv2/lotte"
|
58 |
-
|
59 |
-
# TODO: Add the licence for the dataset here if you can find it
|
60 |
-
_LICENSE = ""
|
61 |
-
|
62 |
-
_URL = {
|
63 |
-
"pooled": "https://huggingface.co/datasets/colbertv2/lotte/resolve/main/pooled/",
|
64 |
-
"lifestyle": "https://huggingface.co/datasets/colbertv2/lotte/resolve/main/lifestyle/",
|
65 |
-
"recreation": "https://huggingface.co/datasets/colbertv2/lotte/resolve/main/recreation/",
|
66 |
-
"science": "https://huggingface.co/datasets/colbertv2/lotte/resolve/main/science/",
|
67 |
-
"technology": "https://huggingface.co/datasets/colbertv2/lotte/resolve/main/technology/",
|
68 |
-
"writing": "https://huggingface.co/datasets/colbertv2/lotte/resolve/main/writing/"
|
69 |
-
}
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
75 |
-
class NewDataset(datasets.GeneratorBasedBuilder):
|
76 |
-
"""TODO: Short description of my dataset."""
|
77 |
-
|
78 |
-
VERSION = datasets.Version("1.1.0")
|
79 |
-
|
80 |
-
# This is an example of a dataset with multiple configurations.
|
81 |
-
# If you don't want/need to define several sub-sets in your dataset,
|
82 |
-
# just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
|
83 |
-
|
84 |
-
# If you need to make complex sub-parts in the datasets with configurable options
|
85 |
-
# You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
|
86 |
-
# BUILDER_CONFIG_CLASS = MyBuilderConfig
|
87 |
-
|
88 |
-
# You will be able to load one or the other configurations in the following list with
|
89 |
-
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
90 |
-
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
91 |
-
BUILDER_CONFIGS = [
|
92 |
-
datasets.BuilderConfig(name="pooled", version=VERSION, description=""),
|
93 |
-
datasets.BuilderConfig(name="lifestyle", version=VERSION, description=""),
|
94 |
-
datasets.BuilderConfig(name="recreation", version=VERSION, description=""),
|
95 |
-
datasets.BuilderConfig(name="science", version=VERSION, description=""),
|
96 |
-
datasets.BuilderConfig(name="technology", version=VERSION, description=""),
|
97 |
-
datasets.BuilderConfig(name="writing", version=VERSION, description=""),
|
98 |
-
#datasets.BuilderConfig(name="pooled_search_valid", version=VERSION, description=""),
|
99 |
-
#datasets.BuilderConfig(name="pooled_search_test", version=VERSION, description=""),
|
100 |
-
#datasets.BuilderConfig(name="pooled_forum_valid", version=VERSION, description=""),
|
101 |
-
#datasets.BuilderConfig(name="pooled_forum_test", version=VERSION, description=""),
|
102 |
-
#datasets.BuilderConfig(name="lifestyle_search", version=VERSION, description=""),
|
103 |
-
#datasets.BuilderConfig(name="lifestyle_forum", version=VERSION, description=""),
|
104 |
-
#datasets.BuilderConfig(name="recreation_search", version=VERSION, description=""),
|
105 |
-
#datasets.BuilderConfig(name="recreation_forum", version=VERSION, description=""),
|
106 |
-
#datasets.BuilderConfig(name="science_search", version=VERSION, description=""),
|
107 |
-
#datasets.BuilderConfig(name="science_forum", version=VERSION, description=""),
|
108 |
-
#datasets.BuilderConfig(name="technology_search", version=VERSION, description=""),
|
109 |
-
#datasets.BuilderConfig(name="technology_forum", version=VERSION, description=""),
|
110 |
-
#datasets.BuilderConfig(name="writing_search", version=VERSION, description=""),
|
111 |
-
#datasets.BuilderConfig(name="writing_forum", version=VERSION, description=""),
|
112 |
-
]
|
113 |
-
|
114 |
-
DEFAULT_CONFIG_NAME = "pooled" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
115 |
-
|
116 |
-
def _info(self):
|
117 |
-
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
118 |
-
features = datasets.Features(
|
119 |
-
{
|
120 |
-
"qid": datasets.Value("int32"),
|
121 |
-
"query": datasets.Value("string"),
|
122 |
-
"author": datasets.Value("string"),
|
123 |
-
"answers": datasets.Sequence(feature={"views": datasets.Value(dtype='int32', id=None),
|
124 |
-
"score": datasets.Value(dtype='int32', id=None),
|
125 |
-
"answer_pids": datasets.Value(dtype='int32', id=None)})
|
126 |
-
}
|
127 |
-
)
|
128 |
-
return datasets.DatasetInfo(
|
129 |
-
# This is the description that will appear on the datasets page.
|
130 |
-
description=_DESCRIPTION,
|
131 |
-
# This defines the different columns of the dataset and their types
|
132 |
-
features=features, # Here we define them above because they are different between the two configurations
|
133 |
-
# If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and
|
134 |
-
# specify them. They'll be used if as_supervised=True in builder.as_dataset.
|
135 |
-
# supervised_keys=("sentence", "label"),
|
136 |
-
# Homepage of the dataset for documentation
|
137 |
-
homepage=_HOMEPAGE,
|
138 |
-
# License for the dataset if available
|
139 |
-
license=_LICENSE,
|
140 |
-
# Citation for the dataset
|
141 |
-
citation=_CITATION,
|
142 |
-
)
|
143 |
-
|
144 |
-
def _split_generators(self, dl_manager):
|
145 |
-
# TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
|
146 |
-
# If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
|
147 |
-
|
148 |
-
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
149 |
-
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
150 |
-
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
151 |
-
|
152 |
-
_URLS = {
|
153 |
-
"forum_dev": _URL[self.config.name] + "dev_qas.forum.jsonl",
|
154 |
-
"forum_test": _URL[self.config.name] + "test_qas.forum.jsonl",
|
155 |
-
"search_dev": _URL[self.config.name] + "dev_qas.search.jsonl",
|
156 |
-
"search_test": _URL[self.config.name] + "test_qas.search.jsonl",
|
157 |
-
}
|
158 |
-
|
159 |
-
downloaded_files = dl_manager.download_and_extract(_URLS)
|
160 |
-
|
161 |
-
return [
|
162 |
-
datasets.SplitGenerator(name="forum_dev", gen_kwargs={"filepath": downloaded_files["forum_dev"]}),
|
163 |
-
datasets.SplitGenerator(name="forum_test", gen_kwargs={"filepath": downloaded_files["forum_test"]}),
|
164 |
-
datasets.SplitGenerator(name="search_dev", gen_kwargs={"filepath": downloaded_files["search_dev"]}),
|
165 |
-
datasets.SplitGenerator(name="search_test", gen_kwargs={"filepath": downloaded_files["search_test"]}),
|
166 |
-
]
|
167 |
-
|
168 |
-
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
169 |
-
def _generate_examples(self, filepath):
|
170 |
-
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
171 |
-
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
172 |
-
|
173 |
-
print("Generating examples")
|
174 |
-
|
175 |
-
with open(filepath, encoding="utf-8") as f:
|
176 |
-
|
177 |
-
for key, row in enumerate(f):
|
178 |
-
|
179 |
-
data = json.loads(row)
|
180 |
-
|
181 |
-
answers = {}
|
182 |
-
|
183 |
-
if "score" in data.keys():
|
184 |
-
answers.update({"score": [data['score']]})
|
185 |
-
else:
|
186 |
-
answers.update({"score": []})
|
187 |
-
|
188 |
-
if "views" in data.keys():
|
189 |
-
answers.update({"views": [data['views']]})
|
190 |
-
else:
|
191 |
-
answers.update({"views": []})
|
192 |
-
|
193 |
-
answers.update({"answer_pids": data['answer_pids']})
|
194 |
-
|
195 |
-
if "question_author" in data.keys():
|
196 |
-
author = data['question_author']
|
197 |
-
else:
|
198 |
-
author = ""
|
199 |
-
|
200 |
-
|
201 |
-
yield key, {
|
202 |
-
"qid": data["qid"],
|
203 |
-
"query": data["query"],
|
204 |
-
"author": author,
|
205 |
-
"answers": answers
|
206 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pooled/dev_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:3787acc2fb866d2e162815fba4159c1656eef50da4e34dddbee3bebfce27eaa4
|
3 |
-
size 2111337
|
|
|
|
|
|
|
|
pooled/dev_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:371311e96eaa17c706944a6dbd0c5d06c8558b0347806053110424a5c865d62b
|
3 |
-
size 899856
|
|
|
|
|
|
|
|
pooled/lotte-forum_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb1ed2cc9f68832afc02bd1626c959836bd7358c605593760d83f80964263031
|
3 |
+
size 924650
|
pooled/lotte-forum_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ce10ee19275d97c60aee3aee6ce7feae2892dffd24fb11a90144e6c98fd053e
|
3 |
+
size 879831
|
pooled/lotte-search_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec685e956d4986d101cc0b8035855b33f50b8ee095d11a4875302c3d530fbfe0
|
3 |
+
size 131808
|
pooled/lotte-search_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49c9be83b389d4d16c4c89f2d144c6306ae28e12da5f9f67c21ced3d4fdfe2bb
|
3 |
+
size 170399
|
pooled/test_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:338f0cbcf07c8be1fa51cd9c09a76597d0e221c906ce1006008409bddeb47d58
|
3 |
-
size 2035076
|
|
|
|
|
|
|
|
pooled/test_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:47d69255519dfe754752b4b85ece19dc84cabf45310a50686b32b8018dd6ed3c
|
3 |
-
size 1182521
|
|
|
|
|
|
|
|
recreation/dev_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:b7781efdf3bb212423fd86d4100dba32e70e478b5c8812d830b15278c612a60e
|
3 |
-
size 413764
|
|
|
|
|
|
|
|
recreation/dev_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:62e1493346982aef59a7d56ab29bcb7452f0844ce8c6a397586255242ebef7a3
|
3 |
-
size 178806
|
|
|
|
|
|
|
|
recreation/lotte-forum_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1cdffdd340e03e16acaeddb48896b71a04c5cde67355bc94d75573445c152dc8
|
3 |
+
size 192433
|
recreation/lotte-forum_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9d3c52b360572135078914e375263bb2d011b50a57ee4fe5efd580e9f523213
|
3 |
+
size 149494
|
recreation/lotte-search_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0068682a99fc8c60ed3e72c05beed550976ba5000812cdf665b8466efb5ff263
|
3 |
+
size 30453
|
recreation/lotte-search_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:545d66827198f4de63ab30ad534a50cd199e22b248e169feeecb2a28f3344edc
|
3 |
+
size 43561
|
recreation/test_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:02bc3c158485b4195f7500f7e5f983096875a32eb8e582db46adff8f29aad911
|
3 |
-
size 353276
|
|
|
|
|
|
|
|
recreation/test_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:ea28b4ac82904db9452ec94b13718fd7b479d8a2378ce02ad619a876f682c6cf
|
3 |
-
size 275367
|
|
|
|
|
|
|
|
science/dev_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:f929396d93d4e3c2058033dd65714b1f6205732d853b4ff97e310a59558a64f9
|
3 |
-
size 422340
|
|
|
|
|
|
|
|
science/dev_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:73a191b46bb59e1c4d0c7328d74583f0422a303b72b0b729914ea51c089c9a38
|
3 |
-
size 173684
|
|
|
|
|
|
|
|
science/lotte-forum_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de38e4ac523b7f91fa3c506a174534c56321e7877faa78b9cd72a973f53145ae
|
3 |
+
size 195368
|
science/lotte-forum_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca722e3320b29f5bbe70e0cce022c3cc9aaed764c6498b34529336341b338ce8
|
3 |
+
size 210272
|
science/lotte-search_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:05ceb11e046bce798bb0115ce5d5e728ee93fae2f31eb9905de8ea1c3a066a74
|
3 |
+
size 29910
|
science/lotte-search_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8216f3f879d37d0bf82bf3365c40ab9a17f648fef3c9a2c76d5be273ff3b3942
|
3 |
+
size 32760
|
science/test_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:7ade8bca406b097ba3e4b9908ffd8241111629bcb15320144225cc5809e977f3
|
3 |
-
size 443622
|
|
|
|
|
|
|
|
science/test_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:5c80f6ed2e517f08739278ce0585dc2a3986815b929fa9a219c491556f04c9fb
|
3 |
-
size 197738
|
|
|
|
|
|
|
|
technology/dev_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:2b4890cb5f8c693f1e7778fa104d538dc7134004d2cfaedbffbc87191b322c04
|
3 |
-
size 438461
|
|
|
|
|
|
|
|
technology/dev_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:13757b60a97ec2cb718f9a777a3af2ea815afcd6971c1f3d3449e5af5609d569
|
3 |
-
size 278706
|
|
|
|
|
|
|
|
technology/lotte-forum_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b94637569d4448650b7180ace560e42da62e07b48177524d62384cffc2972382
|
3 |
+
size 205177
|
technology/lotte-forum_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c021b7263bf6ae1db6d1d811b4e12c1887502461d942cad318663adf1ce97c3
|
3 |
+
size 209694
|
technology/lotte-search_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aef1ab4d01edba9c7edaec98760e89e47ebe621284ef152e98f135233d244092
|
3 |
+
size 47241
|
technology/lotte-search_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2edc5c0f3649c9632d1e6db09a9e76eda0759701c5d7eba84adc9de270be30c1
|
3 |
+
size 33563
|
technology/test_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:2ae44ce8f311e02ea4b2c99198d8b02a9830a57c8ce45b4880a9ebe4e71f7040
|
3 |
-
size 438881
|
|
|
|
|
|
|
|
technology/test_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c6df31ea50dd284eb80383339687844480d8ddaa5ee72a94a46ec72ae78c41d5
|
3 |
-
size 190032
|
|
|
|
|
|
|
|
writing/dev_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:d780993e0ab707c097c6001d88a05fd29c4e4a8222428e40c714884bb8f795f1
|
3 |
-
size 428332
|
|
|
|
|
|
|
|
writing/dev_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:a272aca0019c815d4916647eb21436192d72028e7e99d9c5cd036133cf4eb207
|
3 |
-
size 145596
|
|
|
|
|
|
|
|
writing/lotte-forum_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b40365c11e848156e6e9a7c6f30a3038cc02d05a4d848b39fc9752b8675de3a2
|
3 |
+
size 203711
|
writing/lotte-forum_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94d5deb5cf8d9f76cb622d4a2ece8821d61efab26f1451eb1edeaaca0e6ac3ae
|
3 |
+
size 179372
|
writing/lotte-search_dev.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51ce7fd45f70c1b6479875b5d9b129ce262322f2b735d5c33716156d5145902a
|
3 |
+
size 25230
|
writing/lotte-search_test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4fe8330a30a9ffc47c2d6b48fe5c8a8cd0b4501a5edad5de19d525c7bedd444a
|
3 |
+
size 52184
|
writing/test_qas.forum.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:62763613850de9b85decf65f0363d5a865d471f0f8810562019261cd7dd5a5b1
|
3 |
-
size 395913
|
|
|
|
|
|
|
|
writing/test_qas.search.jsonl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:21276945872c578470b2e97fb570e64227c8236a9154b7af1407eff2eccc37c9
|
3 |
-
size 315010
|
|
|
|
|
|
|
|