Datasets:
Commit
·
bf8e773
1
Parent(s):
cd9c5a0
Update parquet files
Browse files
.gitattributes
DELETED
@@ -1,40 +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 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
29 |
-
# Audio files - uncompressed
|
30 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
33 |
-
# Audio files - compressed
|
34 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
36 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
37 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
38 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
39 |
-
*.json filter=lfs diff=lfs merge=lfs -text
|
40 |
-
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- crowdsourced
|
4 |
-
language:
|
5 |
-
- en
|
6 |
-
license:
|
7 |
-
- cc-by-nc-sa-4.0
|
8 |
-
multilinguality:
|
9 |
-
- monolingual
|
10 |
-
size_categories:
|
11 |
-
- 10K<n<100k
|
12 |
-
task_categories:
|
13 |
-
- text-retrieval
|
14 |
-
- text-generation
|
15 |
-
- sequence-modeling
|
16 |
-
task_ids:
|
17 |
-
- open-domain-cqa
|
18 |
-
- conversational-question-answering
|
19 |
-
pretty_name: Open-domain Conversational Question Answering with Topic Switching
|
20 |
-
---
|
21 |
-
# Dataset Card for TopiOCQA
|
22 |
-
|
23 |
-
## Table of Contents
|
24 |
-
- [Dataset Description](#dataset-description)
|
25 |
-
- [Dataset Summary](#dataset-summary)
|
26 |
-
- [Languages](#languages)
|
27 |
-
- [Additional Information](#additional-information)
|
28 |
-
- [Licensing Information](#licensing-information)
|
29 |
-
- [Citation Information](#citation-information)
|
30 |
-
|
31 |
-
## Dataset Description
|
32 |
-
|
33 |
-
- **Homepage:** [TopiOCQA homepage](https://mcgill-nlp.github.io/topiocqa/)
|
34 |
-
- **Repository:** [TopiOCQA Github](https://github.com/McGill-NLP/topiocqa)
|
35 |
-
- **Paper:** [Open-domain Conversational Question Answering with Topic Switching](https://arxiv.org/abs/2110.00768)
|
36 |
-
- **Point of Contact:** [Vaibhav Adlakha](mailto:[email protected])
|
37 |
-
|
38 |
-
### Dataset Summary
|
39 |
-
|
40 |
-
TopiOCQA is an information-seeking conversational dataset with challenging topic switching phenomena.
|
41 |
-
|
42 |
-
### Languages
|
43 |
-
|
44 |
-
The language in the dataset is English as spoken by the crowdworkers. The BCP-47 code for English is en.
|
45 |
-
|
46 |
-
## Additional Information
|
47 |
-
|
48 |
-
### Licensing Information
|
49 |
-
|
50 |
-
TopiOCQA is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).
|
51 |
-
|
52 |
-
### Citation Information
|
53 |
-
|
54 |
-
```
|
55 |
-
@inproceedings{adlakha2022topiocqa,
|
56 |
-
title={Topi{OCQA}: Open-domain Conversational Question Answering with Topic Switching},
|
57 |
-
author={Adlakha, Vaibhav and Dhuliawala, Shehzaad and Suleman, Kaheer and de Vries, Harm and Reddy, Siva},
|
58 |
-
journal={Transactions of the Association for Computational Linguistics},
|
59 |
-
volume = {10},
|
60 |
-
pages = {468-483},
|
61 |
-
year = {2022},
|
62 |
-
month = {04},
|
63 |
-
year={2022},
|
64 |
-
issn = {2307-387X},
|
65 |
-
doi = {10.1162/tacl_a_00471},
|
66 |
-
url = {https://doi.org/10.1162/tacl\_a\_00471},
|
67 |
-
eprint = {https://direct.mit.edu/tacl/article-pdf/doi/10.1162/tacl\_a\_00471/2008126/tacl\_a\_00471.pdf},
|
68 |
-
}
|
69 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TopiOCQA.py
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
|
16 |
-
# Lint as: python3
|
17 |
-
"""TopiOCQA: Open-domain Conversational Question Answering with Topic Switching"""
|
18 |
-
|
19 |
-
|
20 |
-
import json
|
21 |
-
|
22 |
-
import datasets
|
23 |
-
# from datasets.tasks import QuestionAnsweringExtractive
|
24 |
-
|
25 |
-
|
26 |
-
logger = datasets.logging.get_logger(__name__)
|
27 |
-
|
28 |
-
|
29 |
-
_DESCRIPTION = """\
|
30 |
-
TopiOCQA is an information-seeking conversational dataset with challenging topic switching phenomena.
|
31 |
-
"""
|
32 |
-
|
33 |
-
_URLS = {
|
34 |
-
"train": "data/topiocqa_train.jsonl",
|
35 |
-
"valid": "data/topiocqa_valid.jsonl",
|
36 |
-
}
|
37 |
-
|
38 |
-
|
39 |
-
class TopiOCQAConfig(datasets.BuilderConfig):
|
40 |
-
"""BuilderConfig for TopiOCQA."""
|
41 |
-
|
42 |
-
def __init__(self, **kwargs):
|
43 |
-
"""BuilderConfig for TopiOCQA.
|
44 |
-
|
45 |
-
Args:
|
46 |
-
**kwargs: keyword arguments forwarded to super.
|
47 |
-
"""
|
48 |
-
super(TopiOCQAConfig, self).__init__(**kwargs)
|
49 |
-
|
50 |
-
|
51 |
-
class TopiOCQA(datasets.GeneratorBasedBuilder):
|
52 |
-
"""TopiOCQA: Open-domain Conversational Question Answering with Topic Switching"""
|
53 |
-
|
54 |
-
BUILDER_CONFIGS = [
|
55 |
-
TopiOCQAConfig(
|
56 |
-
name="plain_text",
|
57 |
-
version=datasets.Version("1.0.0", ""),
|
58 |
-
description="Plain text",
|
59 |
-
),
|
60 |
-
]
|
61 |
-
|
62 |
-
def _info(self):
|
63 |
-
return datasets.DatasetInfo(
|
64 |
-
description=_DESCRIPTION,
|
65 |
-
features=datasets.Features(
|
66 |
-
{
|
67 |
-
"Conversation_no": datasets.Value("int32"),
|
68 |
-
"Turn_no": datasets.Value("int32"),
|
69 |
-
"Question": datasets.Value("string"),
|
70 |
-
"Answer": datasets.Value("string"),
|
71 |
-
"Topic": datasets.Value("string"),
|
72 |
-
"Topic_section": datasets.Value("string"),
|
73 |
-
"Rationale": datasets.Value("string"),
|
74 |
-
"is_nq": datasets.Value("bool"),
|
75 |
-
"Context": datasets.features.Sequence(datasets.Value("string")),
|
76 |
-
"Additional_answers": datasets.features.Sequence(
|
77 |
-
{
|
78 |
-
"Answer": datasets.Value("string"),
|
79 |
-
"Topic": datasets.Value("string"),
|
80 |
-
"Topic_section": datasets.Value("string"),
|
81 |
-
"Rationale": datasets.Value("string"),
|
82 |
-
}
|
83 |
-
),
|
84 |
-
}
|
85 |
-
),
|
86 |
-
supervised_keys=None,
|
87 |
-
homepage="https://mcgill-nlp.github.io/topiocqa/",
|
88 |
-
)
|
89 |
-
|
90 |
-
def _split_generators(self, dl_manager):
|
91 |
-
downloaded_files = dl_manager.download_and_extract(_URLS)
|
92 |
-
|
93 |
-
return [
|
94 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
95 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["valid"]}),
|
96 |
-
]
|
97 |
-
|
98 |
-
def _generate_examples(self, filepath):
|
99 |
-
"""This function returns the examples in the raw (text) form."""
|
100 |
-
logger.info("generating examples from = %s", filepath)
|
101 |
-
key = 0
|
102 |
-
with open(filepath, encoding="utf-8") as f:
|
103 |
-
for line in f:
|
104 |
-
data = json.loads(line)
|
105 |
-
yield key, {
|
106 |
-
"Conversation_no": data["Conversation_no"],
|
107 |
-
"Turn_no": data["Turn_no"],
|
108 |
-
"Question": data["Question"],
|
109 |
-
"Answer": data["Answer"],
|
110 |
-
"Topic": data["Topic"],
|
111 |
-
"Topic_section": data["Topic_section"],
|
112 |
-
"Rationale": data["Rationale"],
|
113 |
-
"is_nq": data["is_nq"],
|
114 |
-
"Context": data["Context"],
|
115 |
-
"Additional_answers": data["Additional_answers"],
|
116 |
-
}
|
117 |
-
key += 1
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/topiocqa_train.jsonl → plain_text/topi_ocqa-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:245803ab8145c0e803080ae57ba2b93c6ef1c8f64fc3db4f055bd7bb518a51c0
|
3 |
+
size 13872892
|
data/topiocqa_valid.jsonl → plain_text/topi_ocqa-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:9a769ceb84477f463003f568506a666511dde05ca62f9394edb0522e2ab646c8
|
3 |
+
size 1782185
|