shibing624/nli-zh-all

Dataset

Dataset Card for nli-zh-all

46

16 commits

5 linked in READMEs

updated Jun 22, 2023

See the code

README

Dataset Card for nli-zh-all

Dataset Description

Dataset Summary

中文自然语言推理(NLI)数据合集(nli-zh-all)

整合了文本推理,相似,摘要,问答,指令微调等任务的820万高质量数据,并转化为匹配格式数据集。

Supported Tasks and Leaderboards

Supported Tasks: 支持中文文本匹配任务,文本相似度计算等相关任务。

中文匹配任务的结果目前在顶会paper上出现较少,我罗列一个我自己训练的结果:

Leaderboard: NLI_zh leaderboard

Languages

数据集均是简体中文文本。

Dataset Structure

Data Instances

An example of 'train' looks as follows.

{"text1":"借款后多长时间给打电话","text2":"借款后多久打电话啊","label":1}
{"text1":"没看到微粒贷","text2":"我借那么久也没有提升啊","label":0}
  • label 有2个标签,1表示相似,0表示不相似。

Data Fields

The data fields are the same among all splits.

  • text1: a string feature.
  • text2: a string feature.
  • label: a classification label, with possible values including entailment(1), contradiction(0)。

Data Splits

after remove None and len(text) < 1 data:

$ wc -l nli-zh-all/*
   48818 nli-zh-all/alpaca_gpt4-train.jsonl
    5000 nli-zh-all/amazon_reviews-train.jsonl
  519255 nli-zh-all/belle-train.jsonl
   16000 nli-zh-all/cblue_chip_sts-train.jsonl
  549326 nli-zh-all/chatmed_consult-train.jsonl
   10142 nli-zh-all/cmrc2018-train.jsonl
  395927 nli-zh-all/csl-train.jsonl
   50000 nli-zh-all/dureader_robust-train.jsonl
  709761 nli-zh-all/firefly-train.jsonl
    9568 nli-zh-all/mlqa-train.jsonl
  455875 nli-zh-all/nli_zh-train.jsonl
   50486 nli-zh-all/ocnli-train.jsonl
 2678694 nli-zh-all/simclue-train.jsonl
  419402 nli-zh-all/snli_zh-train.jsonl
    3024 nli-zh-all/webqa-train.jsonl
 1213780 nli-zh-all/wiki_atomic_edits-train.jsonl
   93404 nli-zh-all/xlsum-train.jsonl
 1006218 nli-zh-all/zhihu_kol-train.jsonl
 8234680 total

Data Length

len

count text length script: https://github.com/shibing624/text2vec/blob/master/examples/data/count_text_length.py

Dataset Creation

Curation Rationale

m3e-base启发,合并了中文高质量NLI(natural langauge inference)数据集, 这里把这个数据集上传到huggingface的datasets,方便大家使用。

Source Data

Initial Data Collection and Normalization

如果您想要查看数据集的构建方法,你可以在 https://github.com/shibing624/text2vec/blob/master/examples/data/build_zh_nli_dataset.py 中找到生成 nli-zh-all 数据集的脚本,所有数据均上传到 huggingface datasets。

数据集名称领域数量任务类型Prompt质量数据提供者说明是否开源/研究使用是否商用脚本DoneURL是否同质
cmrc2018百科14,363问答问答Yiming Cui, Ting Liu, Wanxiang Che, Li Xiao, Zhipeng Chen, Wentao Ma, Shijin Wang, Guoping Huhttps://github.com/ymcui/cmrc2018/blob/master/README_CN.md 专家标注的基于维基百科的中文阅读理解数据集,将问题和上下文视为正例https://huggingface.co/datasets/cmrc2018
belle_0.5m百科500,000指令微调LianjiaTech/BELLEbelle 的指令微调数据集,使用 self instruct 方法基于 gpt3.5 生成https://huggingface.co/datasets/BelleGroup/
firefily百科1,649,399指令微调YeungNLPFirefly(流萤) 是一个开源的中文对话式大语言模型,使用指令微调(Instruction Tuning)在中文数据集上进行调优。使用了词表裁剪、ZeRO等技术,有效降低显存消耗和提高训练效率。 在训练中,我们使用了更小的模型参数量,以及更少的计算资源。未说明未说明https://huggingface.co/datasets/YeungNLP/firefly-train-1.1M
alpaca_gpt4百科48,818指令微调Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, Jianfeng Gao本数据集是参考Alpaca方法基于GPT4得到的self-instruct数据,约5万条。https://huggingface.co/datasets/shibing624/alpaca-zh
zhihu_kol百科1,006,218问答问答wangrui6知乎问答未说明未说明https://huggingface.co/datasets/wangrui6/Zhihu-KOL
amazon_reviews_multi电商210,000问答 文本分类摘要亚马逊亚马逊产品评论数据集https://huggingface.co/datasets/amazon_reviews_multi/viewer/zh/train?row=8
mlqa百科85,853问答问答patrickvonplaten一个用于评估跨语言问答性能的基准数据集未说明https://huggingface.co/datasets/mlqa/viewer/mlqa-translate-train.zh/train?p=2
xlsum新闻93,404摘要摘要BUET CSE NLP GroupBBC的专业注释文章摘要对https://huggingface.co/datasets/csebuetnlp/xlsum/viewer/chinese_simplified/train?row=259
ocnli口语17,726自然语言推理推理Thomas Wolf自然语言推理数据集https://huggingface.co/datasets/clue/viewer/ocnli
BQ金融60,000文本分类相似Intelligent Computing Research Center, Harbin Institute of Technology(Shenzhen)http://icrc.hitsz.edu.cn/info/1037/1162.htm BQ 语料库包含来自网上银行自定义服务日志的 120,000 个问题对。它分为三部分:100,000 对用于训练,10,000 对用于验证,10,000 对用于测试。 数据提供者: 哈尔滨工业大学(深圳)智能计算研究中心https://huggingface.co/datasets/shibing624/nli_zh/viewer/BQ
lcqmc口语149,226文本分类相似Ming Xu哈工大文本匹配数据集,LCQMC 是哈尔滨工业大学在自然语言处理国际顶会 COLING2018 构建的问题语义匹配数据集,其目标是判断两个问题的语义是否相同https://huggingface.co/datasets/shibing624/nli_zh/viewer/LCQMC/train
paws-x百科23,576文本分类相似Bhavitvya MalikPAWS Wiki中的示例https://huggingface.co/datasets/paws-x/viewer/zh/train
wiki_atomic_edit百科1,213,780平行语义相似abhishek thakur基于中文维基百科的编辑记录收集的数据集未说明未说明https://huggingface.co/datasets/wiki_atomic_edits
chatmed_consult医药549,326问答问答Wei Zhu真实世界的医学相关的问题,使用 gpt3.5 进行回答https://huggingface.co/datasets/michaelwzhu/ChatMed_Consult_Dataset
webqa百科42,216问答问答suolyer百度于2016年开源的数据集,数据来自于百度知道;格式为一个问题多篇意思基本一致的文章,分为人为标注以及浏览器检索;数据整体质量中,因为混合了很多检索而来的文章未说明https://huggingface.co/datasets/suolyer/webqa/viewer/suolyer--webqa/train?p=3
dureader_robust百科65,937机器阅读理解 问答问答百度DuReader robust旨在利用真实应用中的数据样本来衡量阅读理解模型的鲁棒性,评测模型的过敏感性、过稳定性以及泛化能力,是首个中文阅读理解鲁棒性数据集。https://huggingface.co/datasets/PaddlePaddle/dureader_robust/viewer/plain_text/train?row=96
csl学术395,927语料摘要Yudong Li, Yuqing Zhang, Zhe Zhao, Linlin Shen, Weijie Liu, Weiquan Mao and Hui Zhang提供首个中文科学文献数据集(CSL),包含 396,209 篇中文核心期刊论文元信息 (标题、摘要、关键词、学科、门类)。CSL 数据集可以作为预训练语料,也可以构建许多NLP任务,例如文本摘要(标题预测)、 关键词生成和文本分类等。https://huggingface.co/datasets/neuclir/csl
snli-zh口语419,402文本分类推理liuhuanyong中文SNLI数据集,翻译自英文SNLIhttps://github.com/liuhuanyong/ChineseTextualInference/
SimCLUE百科2,678,694平行语义相似数据集合,请在 simCLUE 中查看整合了中文领域绝大多数可用的开源的语义相似度和自然语言推理的数据集,并重新做了数据拆分和整理。https://github.com/CLUEbenchmark/SimCLUE

Who are the source language producers?

数据集的版权归原作者所有,使用各数据集时请尊重原数据集的版权。

SNLI:

@inproceedings{snli:emnlp2015, Author = {Bowman, Samuel R. and Angeli, Gabor and Potts, Christopher, and Manning, Christopher D.}, Booktitle = {Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP)}, Publisher = {Association for Computational Linguistics}, Title = {A large annotated corpus for learning natural language inference}, Year = {2015} }

Who are the annotators?

原作者。

Social Impact of Dataset

This dataset was developed as a benchmark for evaluating representational systems for text, especially including those induced by representation learning methods, in the task of predicting truth conditions in a given context.

Systems that are successful at such a task may be more successful in modeling semantic representations.

Licensing Information

for reasearch

用于学术研究

Contributions

shibing624 add this dataset.

Contributors

shibing624

16 commits

shibing624/nli-zh-all

Dataset

Dataset Card for nli-zh-all

46

16 commits

5 linked in READMEs

updated Jun 22, 2023

See the code

README

Dataset Card for nli-zh-all

Dataset Description

Dataset Summary

中文自然语言推理(NLI)数据合集(nli-zh-all)

整合了文本推理,相似,摘要,问答,指令微调等任务的820万高质量数据,并转化为匹配格式数据集。

Supported Tasks and Leaderboards

Supported Tasks: 支持中文文本匹配任务,文本相似度计算等相关任务。

中文匹配任务的结果目前在顶会paper上出现较少,我罗列一个我自己训练的结果:

Leaderboard: NLI_zh leaderboard

Languages

数据集均是简体中文文本。

Dataset Structure

Data Instances

An example of 'train' looks as follows.

{"text1":"借款后多长时间给打电话","text2":"借款后多久打电话啊","label":1}
{"text1":"没看到微粒贷","text2":"我借那么久也没有提升啊","label":0}
  • label 有2个标签,1表示相似,0表示不相似。

Data Fields

The data fields are the same among all splits.

  • text1: a string feature.
  • text2: a string feature.
  • label: a classification label, with possible values including entailment(1), contradiction(0)。

Data Splits

after remove None and len(text) < 1 data:

$ wc -l nli-zh-all/*
   48818 nli-zh-all/alpaca_gpt4-train.jsonl
    5000 nli-zh-all/amazon_reviews-train.jsonl
  519255 nli-zh-all/belle-train.jsonl
   16000 nli-zh-all/cblue_chip_sts-train.jsonl
  549326 nli-zh-all/chatmed_consult-train.jsonl
   10142 nli-zh-all/cmrc2018-train.jsonl
  395927 nli-zh-all/csl-train.jsonl
   50000 nli-zh-all/dureader_robust-train.jsonl
  709761 nli-zh-all/firefly-train.jsonl
    9568 nli-zh-all/mlqa-train.jsonl
  455875 nli-zh-all/nli_zh-train.jsonl
   50486 nli-zh-all/ocnli-train.jsonl
 2678694 nli-zh-all/simclue-train.jsonl
  419402 nli-zh-all/snli_zh-train.jsonl
    3024 nli-zh-all/webqa-train.jsonl
 1213780 nli-zh-all/wiki_atomic_edits-train.jsonl
   93404 nli-zh-all/xlsum-train.jsonl
 1006218 nli-zh-all/zhihu_kol-train.jsonl
 8234680 total

Data Length

len

count text length script: https://github.com/shibing624/text2vec/blob/master/examples/data/count_text_length.py

Dataset Creation

Curation Rationale

m3e-base启发,合并了中文高质量NLI(natural langauge inference)数据集, 这里把这个数据集上传到huggingface的datasets,方便大家使用。

Source Data

Initial Data Collection and Normalization

如果您想要查看数据集的构建方法,你可以在 https://github.com/shibing624/text2vec/blob/master/examples/data/build_zh_nli_dataset.py 中找到生成 nli-zh-all 数据集的脚本,所有数据均上传到 huggingface datasets。

数据集名称领域数量任务类型Prompt质量数据提供者说明是否开源/研究使用是否商用脚本DoneURL是否同质
cmrc2018百科14,363问答问答Yiming Cui, Ting Liu, Wanxiang Che, Li Xiao, Zhipeng Chen, Wentao Ma, Shijin Wang, Guoping Huhttps://github.com/ymcui/cmrc2018/blob/master/README_CN.md 专家标注的基于维基百科的中文阅读理解数据集,将问题和上下文视为正例https://huggingface.co/datasets/cmrc2018
belle_0.5m百科500,000指令微调LianjiaTech/BELLEbelle 的指令微调数据集,使用 self instruct 方法基于 gpt3.5 生成https://huggingface.co/datasets/BelleGroup/
firefily百科1,649,399指令微调YeungNLPFirefly(流萤) 是一个开源的中文对话式大语言模型,使用指令微调(Instruction Tuning)在中文数据集上进行调优。使用了词表裁剪、ZeRO等技术,有效降低显存消耗和提高训练效率。 在训练中,我们使用了更小的模型参数量,以及更少的计算资源。未说明未说明https://huggingface.co/datasets/YeungNLP/firefly-train-1.1M
alpaca_gpt4百科48,818指令微调Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, Jianfeng Gao本数据集是参考Alpaca方法基于GPT4得到的self-instruct数据,约5万条。https://huggingface.co/datasets/shibing624/alpaca-zh
zhihu_kol百科1,006,218问答问答wangrui6知乎问答未说明未说明https://huggingface.co/datasets/wangrui6/Zhihu-KOL
amazon_reviews_multi电商210,000问答 文本分类摘要亚马逊亚马逊产品评论数据集https://huggingface.co/datasets/amazon_reviews_multi/viewer/zh/train?row=8
mlqa百科85,853问答问答patrickvonplaten一个用于评估跨语言问答性能的基准数据集未说明https://huggingface.co/datasets/mlqa/viewer/mlqa-translate-train.zh/train?p=2
xlsum新闻93,404摘要摘要BUET CSE NLP GroupBBC的专业注释文章摘要对https://huggingface.co/datasets/csebuetnlp/xlsum/viewer/chinese_simplified/train?row=259
ocnli口语17,726自然语言推理推理Thomas Wolf自然语言推理数据集https://huggingface.co/datasets/clue/viewer/ocnli
BQ金融60,000文本分类相似Intelligent Computing Research Center, Harbin Institute of Technology(Shenzhen)http://icrc.hitsz.edu.cn/info/1037/1162.htm BQ 语料库包含来自网上银行自定义服务日志的 120,000 个问题对。它分为三部分:100,000 对用于训练,10,000 对用于验证,10,000 对用于测试。 数据提供者: 哈尔滨工业大学(深圳)智能计算研究中心https://huggingface.co/datasets/shibing624/nli_zh/viewer/BQ
lcqmc口语149,226文本分类相似Ming Xu哈工大文本匹配数据集,LCQMC 是哈尔滨工业大学在自然语言处理国际顶会 COLING2018 构建的问题语义匹配数据集,其目标是判断两个问题的语义是否相同https://huggingface.co/datasets/shibing624/nli_zh/viewer/LCQMC/train
paws-x百科23,576文本分类相似Bhavitvya MalikPAWS Wiki中的示例https://huggingface.co/datasets/paws-x/viewer/zh/train
wiki_atomic_edit百科1,213,780平行语义相似abhishek thakur基于中文维基百科的编辑记录收集的数据集未说明未说明https://huggingface.co/datasets/wiki_atomic_edits
chatmed_consult医药549,326问答问答Wei Zhu真实世界的医学相关的问题,使用 gpt3.5 进行回答https://huggingface.co/datasets/michaelwzhu/ChatMed_Consult_Dataset
webqa百科42,216问答问答suolyer百度于2016年开源的数据集,数据来自于百度知道;格式为一个问题多篇意思基本一致的文章,分为人为标注以及浏览器检索;数据整体质量中,因为混合了很多检索而来的文章未说明https://huggingface.co/datasets/suolyer/webqa/viewer/suolyer--webqa/train?p=3
dureader_robust百科65,937机器阅读理解 问答问答百度DuReader robust旨在利用真实应用中的数据样本来衡量阅读理解模型的鲁棒性,评测模型的过敏感性、过稳定性以及泛化能力,是首个中文阅读理解鲁棒性数据集。https://huggingface.co/datasets/PaddlePaddle/dureader_robust/viewer/plain_text/train?row=96
csl学术395,927语料摘要Yudong Li, Yuqing Zhang, Zhe Zhao, Linlin Shen, Weijie Liu, Weiquan Mao and Hui Zhang提供首个中文科学文献数据集(CSL),包含 396,209 篇中文核心期刊论文元信息 (标题、摘要、关键词、学科、门类)。CSL 数据集可以作为预训练语料,也可以构建许多NLP任务,例如文本摘要(标题预测)、 关键词生成和文本分类等。https://huggingface.co/datasets/neuclir/csl
snli-zh口语419,402文本分类推理liuhuanyong中文SNLI数据集,翻译自英文SNLIhttps://github.com/liuhuanyong/ChineseTextualInference/
SimCLUE百科2,678,694平行语义相似数据集合,请在 simCLUE 中查看整合了中文领域绝大多数可用的开源的语义相似度和自然语言推理的数据集,并重新做了数据拆分和整理。https://github.com/CLUEbenchmark/SimCLUE

Who are the source language producers?

数据集的版权归原作者所有,使用各数据集时请尊重原数据集的版权。

SNLI:

@inproceedings{snli:emnlp2015, Author = {Bowman, Samuel R. and Angeli, Gabor and Potts, Christopher, and Manning, Christopher D.}, Booktitle = {Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP)}, Publisher = {Association for Computational Linguistics}, Title = {A large annotated corpus for learning natural language inference}, Year = {2015} }

Who are the annotators?

原作者。

Social Impact of Dataset

This dataset was developed as a benchmark for evaluating representational systems for text, especially including those induced by representation learning methods, in the task of predicting truth conditions in a given context.

Systems that are successful at such a task may be more successful in modeling semantic representations.

Licensing Information

for reasearch

用于学术研究

Contributions

shibing624 add this dataset.

Contributors

shibing624

16 commits