Datasets:
Tasks:
Question Answering
Sub-tasks:
multiple-choice-qa
Languages:
English
Size:
10K<n<100K
License:
Commit ·
57a0820
0
Parent(s):
Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
Files changed (5)
- .gitattributesAdded+27
- README.mdAdded+140
- dataset_infos.jsonAdded+1
- dream.pyAdded+124
- dummy/plain_text/1.0.0/dummy_data.zipAdded+3
123456789101112131415161718192021222324252627*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bin.* filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140---annotations_creators:- expert-generatedlanguage_creators:- expert-generatedlanguages:- enlicenses:- unknownmultilinguality:- monolingualsize_categories:- 1K<n<10Ksource_datasets:- originaltask_categories:- question-answeringtask_ids:- multiple-choice-qa---
# Dataset Card Creation Guide
## Table of Contents- [Dataset Description](#dataset-description) - [Dataset Summary](#dataset-summary) - [Supported Tasks](#supported-tasks-and-leaderboards) - [Languages](#languages)- [Dataset Structure](#dataset-structure) - [Data Instances](#data-instances) - [Data Fields](#data-instances) - [Data Splits](#data-instances)- [Dataset Creation](#dataset-creation) - [Curation Rationale](#curation-rationale) - [Source Data](#source-data) - [Annotations](#annotations) - [Personal and Sensitive Information](#personal-and-sensitive-information)- [Considerations for Using the Data](#considerations-for-using-the-data) - [Social Impact of Dataset](#social-impact-of-dataset) - [Discussion of Biases](#discussion-of-biases) - [Other Known Limitations](#other-known-limitations)- [Additional Information](#additional-information) - [Dataset Curators](#dataset-curators) - [Licensing Information](#licensing-information) - [Citation Information](#citation-information)
## Dataset Description
- **Homepage:** [Add homepage URL here if available (unless it's a GitHub repository)]()- **Repository:** [If the dataset is hosted on github or has a github homepage, add URL here]()- **Paper:** [If the dataset was introduced by a paper or there was a paper written describing the dataset, add URL here (landing page for Arxiv paper preferred)]()- **Leaderboard:** [If the dataset supports an active leaderboard, add link here]()- **Point of Contact:** [If known, name and email of at least one person the reader can contact for questions about the dataset.]()
### Dataset Summary
[More Information Needed]
### Supported Tasks and Leaderboards
[More Information Needed]
### Languages
[More Information Needed]
## Dataset Structure
### Data Instances
[More Information Needed]
### Data Fields
[More Information Needed]
### Data Splits
[More Information Needed]## Dataset Creation
### Curation Rationale
[More Information Needed]
### Source Data
[More Information Needed]
#### Initial Data Collection and Normalization
[More Information Needed]
#### Who are the source language producers?
[More Information Needed]
### Annotations
[More Information Needed]
#### Annotation process
[More Information Needed]
#### Who are the annotators?
[More Information Needed]
### Personal and Sensitive Information
[More Information Needed]
## Considerations for Using the Data
### Social Impact of Dataset
[More Information Needed]
### Discussion of Biases
[More Information Needed]
### Other Known Limitations
[More Information Needed]
## Additional Information
### Dataset Curators
[More Information Needed]
### Licensing Information
[More Information Needed]
### Citation Information
[More Information Needed]1{"plain_text": {"description": "DREAM is a multiple-choice Dialogue-based REAding comprehension exaMination dataset. In contrast to existing reading comprehension datasets, DREAM is the first to focus on in-depth multi-turn multi-party dialogue understanding.\n", "citation": "@article{sundream2018,\n title={{DREAM}: A Challenge Dataset and Models for Dialogue-Based Reading Comprehension},\n author={Sun, Kai and Yu, Dian and Chen, Jianshu and Yu, Dong and Choi, Yejin and Cardie, Claire},\n journal={Transactions of the Association for Computational Linguistics},\n year={2019},\n url={https://arxiv.org/abs/1902.00164v1}\n}\n", "homepage": "https://dataset.org/dream/", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "dialogue_id": {"dtype": "string", "id": null, "_type": "Value"}, "dialogue": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "choice": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "answer": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "dream", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4775235, "num_examples": 6116, "dataset_name": "dream"}, "validation": {"name": "validation", "num_bytes": 1539272, "num_examples": 2040, "dataset_name": "dream"}, "test": {"name": "test", "num_bytes": 1556379, "num_examples": 2041, "dataset_name": "dream"}}, "download_checksums": {"https://raw.githubusercontent.com/nlpdata/dream/master/data/train.json": {"num_bytes": 3355481, "checksum": "90942ddea1b56231a0ad2097dc5f115ce1face1cfb86f029041e5bad38e68566"}, "https://raw.githubusercontent.com/nlpdata/dream/master/data/dev.json": {"num_bytes": 1097827, "checksum": "9d5af2e580d809c73872a7dd43fe93d0b07c6f6086b04a9a9a1917603009d961"}, "https://raw.githubusercontent.com/nlpdata/dream/master/data/test.json": {"num_bytes": 1104882, "checksum": "d96d7d0752f7eab1ea8f165a582430f35653c428d36633ab4d7f26fc14946c3a"}}, "download_size": 5558190, "post_processing_size": null, "dataset_size": 7870886, "size_in_bytes": 13429076}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124# coding=utf-8# Copyright 2020 HuggingFace Datasets Authors.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.
# Lint as: python3"""DREAM: A Challenge Dataset and Models for Dialogue-Based Reading Comprehension"""
from __future__ import absolute_import, division, print_function
import jsonimport logging
import datasets
_CITATION = """\@article{sundream2018, title={{DREAM}: A Challenge Dataset and Models for Dialogue-Based Reading Comprehension}, author={Sun, Kai and Yu, Dian and Chen, Jianshu and Yu, Dong and Choi, Yejin and Cardie, Claire}, journal={Transactions of the Association for Computational Linguistics}, year={2019}, url={https://arxiv.org/abs/1902.00164v1}}"""
_DESCRIPTION = """\DREAM is a multiple-choice Dialogue-based REAding comprehension exaMination dataset. \In contrast to existing reading comprehension datasets, DREAM is the first to focus on \in-depth multi-turn multi-party dialogue understanding."""
_URL = "https://raw.githubusercontent.com/nlpdata/dream/master/data/"_URLS = { "train": _URL + "train.json", "dev": _URL + "dev.json", "test": _URL + "test.json",}
class DreamConfig(datasets.BuilderConfig): """BuilderConfig for Dream."""
def __init__(self, **kwargs): """BuilderConfig for Dream.
Args: **kwargs: keyword arguments forwarded to super. """ super(DreamConfig, self).__init__(**kwargs)
class Dream(datasets.GeneratorBasedBuilder): """DREAM: A Challenge Dataset and Models for Dialogue-Based Reading Comprehension"""
VERSION = datasets.Version("1.0.0")
BUILDER_CONFIGS = [ DreamConfig( name="plain_text", version=datasets.Version("1.0.0"), description="plain_text", ), ]
def _info(self): return datasets.DatasetInfo( description=_DESCRIPTION, features=datasets.Features( { "id": datasets.Value("int32"), "dialogue_id": datasets.Value("string"), "dialogue": datasets.Sequence(datasets.Value("string")), "question": datasets.Value("string"), "choice": datasets.features.Sequence(datasets.Value("string")), "answer": datasets.Value("string"), } ), supervised_keys=None, homepage="https://dataset.org/dream/", citation=_CITATION, )
def _split_generators(self, dl_manager): """Returns SplitGenerators.""" downloaded_files = dl_manager.download_and_extract(_URLS)
return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}), datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}), datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}), ]
def _generate_examples(self, filepath): """This function returns the examples in the raw (text) form.""" logging.info("⏳ Generating examples from = %s", filepath) with open(filepath, encoding="utf-8") as f: dialogues = json.load(f) counter = 0 for dialogue in dialogues: dialogue_text = dialogue[0] questions = dialogue[1] dialogue_id = dialogue[2]
for que in questions: yield counter, { "id": counter, "dialogue_id": dialogue_id, "dialogue": dialogue_text, "question": que["question"], "choice": que["choice"], "answer": que["answer"], } counter += 1123version https://git-lfs.github.com/spec/v1oid sha256:240ac202974016d38b9889434758a3b248adaaac9b8392d37d3afc2f9689c092size 4544.gitattributesAdded+27
README.mdAdded+140
dataset_infos.jsonAdded+1
dream.pyAdded+124
dummy/plain_text/1.0.0/dummy_data.zipAdded+3