Datasets:
Commit ·
c09f4ca
1
Parent(s): 5bd582f
Update parquet files
Browse filesFiles changed (15)
- README.mdDeleted-166
- dummy/large/1.0.0/dummy_data.zip → base/lccc-test.parquetRenamed+2-2
- lccc_base_train.jsonl.gz → base/lccc-train-00000-of-00002.parquetRenamed+2-2
- base/lccc-train-00001-of-00002.parquetAdded+3
- lccc_base_test.jsonl.gz → base/lccc-validation.parquetRenamed+2-2
- dataset_infos.jsonDeleted-1
- dummy/base/1.0.0/dummy_data.zip.lockDeleted
- dummy/large/1.0.0/dummy_data.zip.lockDeleted
- large/lccc-train-00000-of-00004.parquetAdded+3
- large/lccc-train-00001-of-00004.parquetAdded+3
- large/lccc-train-00002-of-00004.parquetAdded+3
- dummy/base/1.0.0/dummy_data.zip → large/lccc-train-00003-of-00004.parquetRenamed+2-2
- lccc.pyDeleted-136
- lccc_base_valid.jsonl.gzDeleted-3
- lccc_large.jsonl.gzDeleted-3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166---annotations_creators:- otherlanguage_creators:- otherlanguage:- zhlicense:- mitmultilinguality:- monolingualsize_categories:- 10M<n<100Msource_datasets:- originaltask_categories:- conversationaltask_ids:- dialogue-generationpretty_name: lccctags:- dialogue-response-retrieval---
# Dataset Card for lccc_large
## Table of Contents- [Dataset Card for lccc_large](#dataset-card-for-lccc_large) - [Table of Contents](#table-of-contents) - [Dataset Description](#dataset-description) - [Dataset Summary](#dataset-summary) - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards) - [Languages](#languages) - [Dataset Structure](#dataset-structure) - [Data Instances](#data-instances) - [Data Fields](#data-fields) - [Data Splits](#data-splits) - [Dataset Creation](#dataset-creation) - [Curation Rationale](#curation-rationale) - [Source Data](#source-data) - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization) - [Who are the source language producers?](#who-are-the-source-language-producers) - [Annotations](#annotations) - [Annotation process](#annotation-process) - [Who are the annotators?](#who-are-the-annotators) - [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:** https://github.com/thu-coai/CDial-GPT- **Repository:** https://github.com/thu-coai/CDial-GPT- **Paper:** https://arxiv.org/abs/2008.03946
### Dataset Summary
lccc: Large-scale Cleaned Chinese Conversation corpus (LCCC) is a large Chinese dialogue corpus originate from Chinese social medias. A rigorous data cleaning pipeline is designed to ensure the quality of the corpus. This pipeline involves a set of rules and several classifier-based filters. Noises such as offensive or sensitive words, special symbols, emojis, grammatically incorrect sentences, and incoherent conversations are filtered.
lccc是一套来自于中文社交媒体的对话数据,我们设计了一套严格的数据过滤流程来确保该数据集中对话数据的质量。 这一数据过滤流程中包括一系列手工规则以及若干基于机器学习算法所构建的分类器。 我们所过滤掉的噪声包括:脏字脏词、特殊字符、颜表情、语法不通的语句、上下文不相关的对话等。
### Supported Tasks and Leaderboards
- dialogue-generation: The dataset can be used to train a model for generating dialogue responses.- response-retrieval: The dataset can be used to train a reranker model that can be used to implement a retrieval-based dialogue model.
### Languages
LCCC is in Chinese
LCCC中的对话是中文的
## Dataset Structure
### Data Instances
["火锅 我 在 重庆 成都 吃 了 七八 顿 火锅", "哈哈哈哈 ! 那 我 的 嘴巴 可能 要 烂掉 !", "不会 的 就是 好 油腻"]
### Data Fields
Each line is a list of utterances that consist a dialogue.Note that the LCCC dataset provided in our original Github page is in json format,however, we are providing LCCC in jsonl format here.
### Data Splits
We do not provide the offical split for LCCC-large.But we provide a split for LCCC-base:
|train|valid|test||:---:|:---:|:---:||6,820,506 | 20,000 | 10,000|
## Dataset Creation
### Curation Rationale
[Needs More Information]
### Source Data
#### Initial Data Collection and Normalization
[Needs More Information]
#### Who are the source language producers?
[Needs More Information]
### Annotations
#### Annotation process
[Needs More Information]
#### Who are the annotators?
[Needs More Information]
### Personal and Sensitive Information
[Needs More Information]
## Considerations for Using the Data
### Social Impact of Dataset
[Needs More Information]
### Discussion of Biases
[Needs More Information]
### Other Known Limitations
[Needs More Information]
## Additional Information
### Dataset Curators
[Needs More Information]
### Licensing Information
[Needs More Information]
### Citation Information
Please cite the following paper if you find this dataset useful:
```bibtex@inproceedings{wang2020chinese, title={A Large-Scale Chinese Short-Text Conversation Dataset}, author={Wang, Yida and Ke, Pei and Zheng, Yinhe and Huang, Kaili and Jiang, Yong and Zhu, Xiaoyan and Huang, Minlie}, booktitle={NLPCC}, year={2020}, url={https://arxiv.org/abs/2008.03946}}```123version https://git-lfs.github.com/spec/v1oid sha256:87ec878e0941fa2af39af9ae57f74bea745ab0bb87ab3d7d1b943d22c6a1b833size 723123version https://git-lfs.github.com/spec/v1oid sha256:67bc6298942e852982762f8b1edbadb41a0dbe7213f40c6ddf3baa92a08f0d5dsize 947703
123version https://git-lfs.github.com/spec/v1oid sha256:2162e0ed923fba62329cabf7e1493fbe59248afc94a62508e4abdea61e624627size 369854377123version https://git-lfs.github.com/spec/v1oid sha256:858f8acc6e9121b06fa93892dbbc5c6750b1cc0eca6f6e9bfe6815c99fedb4d6size 339463403
123version https://git-lfs.github.com/spec/v1oid sha256:c83a91bf81170ed2f1c5071b632da0a954285c0848a60f6cd085f837f2253625size 293479940123version https://git-lfs.github.com/spec/v1oid sha256:cf8757587bdb8f360cc94fc38baadf9e185bad65a26155527a8430c048676016size 549124123version https://git-lfs.github.com/spec/v1oid sha256:dd1424f72bc3603735480a6cf321cc1aed55ac0cd9502a659fafa7e922e6282dsize 1849574
1{"large": {"description": "LCCC: Large-scale Cleaned Chinese Conversation corpus (LCCC) is a large corpus of Chinese conversations.\nA rigorous data cleaning pipeline is designed to ensure the quality of the corpus.\nThis pipeline involves a set of rules and several classifier-based filters.\nNoises such as offensive or sensitive words, special symbols, emojis,\ngrammatically incorrect sentences, and incoherent conversations are filtered.\n", "citation": "@inproceedings{wang2020chinese,\ntitle={A Large-Scale Chinese Short-Text Conversation Dataset},\nauthor={Wang, Yida and Ke, Pei and Zheng, Yinhe and Huang, Kaili and Jiang, Yong and Zhu, Xiaoyan and Huang, Minlie},\nbooktitle={NLPCC},\nyear={2020},\nurl={https://arxiv.org/abs/2008.03946}\n}\n", "homepage": "https://github.com/thu-coai/CDial-GPT", "license": "MIT", "features": {"dialog": [{"dtype": "string", "id": null, "_type": "Value"}]}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "lccc", "config_name": "large", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1530827965, "num_examples": 12007759, "dataset_name": "lccc"}}, "download_checksums": {"https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_large.jsonl.gz": {"num_bytes": 607605643, "checksum": "0eaf3b39e1f54c414c3c75a8319f89c8a98b4bc6f91913b051a0b849e7d3326f"}}, "download_size": 607605643, "post_processing_size": null, "dataset_size": 1530827965, "size_in_bytes": 2138433608}, "base": {"description": "LCCC: Large-scale Cleaned Chinese Conversation corpus (LCCC) is a large corpus of Chinese conversations.\nA rigorous data cleaning pipeline is designed to ensure the quality of the corpus.\nThis pipeline involves a set of rules and several classifier-based filters.\nNoises such as offensive or sensitive words, special symbols, emojis,\ngrammatically incorrect sentences, and incoherent conversations are filtered.\n", "citation": "@inproceedings{wang2020chinese,\ntitle={A Large-Scale Chinese Short-Text Conversation Dataset},\nauthor={Wang, Yida and Ke, Pei and Zheng, Yinhe and Huang, Kaili and Jiang, Yong and Zhu, Xiaoyan and Huang, Minlie},\nbooktitle={NLPCC},\nyear={2020},\nurl={https://arxiv.org/abs/2008.03946}\n}\n", "homepage": "https://github.com/thu-coai/CDial-GPT", "license": "MIT", "features": {"dialog": [{"dtype": "string", "id": null, "_type": "Value"}]}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "lccc", "config_name": "base", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 932634902, "num_examples": 6820506, "dataset_name": "lccc"}, "test": {"name": "test", "num_bytes": 1498216, "num_examples": 10000, "dataset_name": "lccc"}, "validation": {"name": "validation", "num_bytes": 2922731, "num_examples": 20000, "dataset_name": "lccc"}}, "download_checksums": {"https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_base_train.jsonl.gz": {"num_bytes": 369854377, "checksum": "2162e0ed923fba62329cabf7e1493fbe59248afc94a62508e4abdea61e624627"}, "https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_base_valid.jsonl.gz": {"num_bytes": 1071594, "checksum": "5cc27e7ac3447c5a31386178f82ff01cab56e27827445ef8d429809301491759"}, "https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_base_test.jsonl.gz": {"num_bytes": 549124, "checksum": "cf8757587bdb8f360cc94fc38baadf9e185bad65a26155527a8430c048676016"}}, "download_size": 371475095, "post_processing_size": null, "dataset_size": 937055849, "size_in_bytes": 1308530944}}123version https://git-lfs.github.com/spec/v1oid sha256:9c17c923ded02d887d28e9d8c4e1193d89f243b41a979a398491455391571717size 338593764123version https://git-lfs.github.com/spec/v1oid sha256:0699fc3b1355a33f7270129a65ca7e665facb0dd7297ac8e7d5e60c2b924498bsize 340115039123version https://git-lfs.github.com/spec/v1oid sha256:555c89a681a667295466a548c2528e3e8acff6e1fab36f5cb1417413b08bd28bsize 341611928123version https://git-lfs.github.com/spec/v1oid sha256:4b55cad4bfdd78c371ec57503cec463e24ce1a37f60040cb8f5082c6e0d84fdesize 2100123version https://git-lfs.github.com/spec/v1oid sha256:dee8bcc245d9f1218609b38932e999600256c5ddfe8b98dd007543e1b9aa6d8dsize 20107350
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.## 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."""LCCC: Large-scale Cleaned Chinese Conversation corpus (LCCC) is a large corpus of Chinese conversations.A rigorous data cleaning pipeline is designed to ensure the quality of the corpus.This pipeline involves a set of rules and several classifier-based filters.Noises such as offensive or sensitive words, special symbols, emojis,grammatically incorrect sentences, and incoherent conversations are filtered."""
import jsonimport os
import datasets
# BibTeX citation_CITATION = """\@inproceedings{wang2020chinese,title={A Large-Scale Chinese Short-Text Conversation Dataset},author={Wang, Yida and Ke, Pei and Zheng, Yinhe and Huang, Kaili and Jiang, Yong and Zhu, Xiaoyan and Huang, Minlie},booktitle={NLPCC},year={2020},url={https://arxiv.org/abs/2008.03946}}"""
# Description of the dataset here_DESCRIPTION = """\LCCC: Large-scale Cleaned Chinese Conversation corpus (LCCC) is a large corpus of Chinese conversations.A rigorous data cleaning pipeline is designed to ensure the quality of the corpus.This pipeline involves a set of rules and several classifier-based filters.Noises such as offensive or sensitive words, special symbols, emojis,grammatically incorrect sentences, and incoherent conversations are filtered."""
_HOMEPAGE = "https://github.com/thu-coai/CDial-GPT"_LICENSE = "MIT"_URLS = { "large": "https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_large.jsonl.gz", "base": { "train": "https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_base_train.jsonl.gz", "valid": "https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_base_valid.jsonl.gz", "test": "https://huggingface.co/datasets/silver/lccc/resolve/main/lccc_base_test.jsonl.gz", },}
class LCCC(datasets.GeneratorBasedBuilder): """Large-scale Cleaned Chinese Conversation corpus."""
VERSION = datasets.Version("1.0.0")
BUILDER_CONFIGS = [ datasets.BuilderConfig(name="large", version=VERSION, description="The large version of LCCC"), datasets.BuilderConfig(name="base", version=VERSION, description="The base version of LCCC"), ]
def _info(self): features = datasets.Features( { "dialog": [datasets.Value("string")], } ) return datasets.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, # This defines the different columns of the dataset and their types features=features, # Here we define them above because they are different between the two configurations # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and # specify them. They'll be used if as_supervised=True in builder.as_dataset. # supervised_keys=("sentence", "label"), # Homepage of the dataset for documentation homepage=_HOMEPAGE, # License for the dataset if available license=_LICENSE, # Citation for the dataset citation=_CITATION, )
def _split_generators(self, dl_manager): urls = _URLS[self.config.name] downloaded_data = dl_manager.download_and_extract(urls) if self.config.name == "large": return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "filepath": os.path.join(downloaded_data), "split": "train", }, ) ] if self.config.name == "base": return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "filepath": os.path.join(downloaded_data["train"]), "split": "train", }, ), datasets.SplitGenerator( name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(downloaded_data["test"]), "split": "test"}, ), datasets.SplitGenerator( name=datasets.Split.VALIDATION, gen_kwargs={ "filepath": os.path.join(downloaded_data["valid"]), "split": "dev", }, ), ]
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators` def _generate_examples(self, filepath, split): with open(filepath, encoding="utf-8") as f: for key, row in enumerate(f): row = row.strip() if len(row) == 0: continue yield key, { "dialog": json.loads(row), }123version https://git-lfs.github.com/spec/v1oid sha256:5cc27e7ac3447c5a31386178f82ff01cab56e27827445ef8d429809301491759size 1071594123version https://git-lfs.github.com/spec/v1oid sha256:0eaf3b39e1f54c414c3c75a8319f89c8a98b4bc6f91913b051a0b849e7d3326fsize 607605643README.mdDeleted-166
dummy/large/1.0.0/dummy_data.zip → base/lccc-test.parquetRenamed+2-2
lccc_base_train.jsonl.gz → base/lccc-train-00000-of-00002.parquetRenamed+2-2
base/lccc-train-00001-of-00002.parquetAdded+3
lccc_base_test.jsonl.gz → base/lccc-validation.parquetRenamed+2-2
dataset_infos.jsonDeleted-1
dummy/base/1.0.0/dummy_data.zip.lockDeleted
dummy/large/1.0.0/dummy_data.zip.lockDeleted
large/lccc-train-00000-of-00004.parquetAdded+3
large/lccc-train-00001-of-00004.parquetAdded+3
large/lccc-train-00002-of-00004.parquetAdded+3
dummy/base/1.0.0/dummy_data.zip → large/lccc-train-00003-of-00004.parquetRenamed+2-2
lccc.pyDeleted-136
lccc_base_valid.jsonl.gzDeleted-3
lccc_large.jsonl.gzDeleted-3