stackexchange
收藏魔搭社区2025-12-05 更新2025-06-14 收录
下载链接:
https://modelscope.cn/datasets/common-pile/stackexchange
下载链接
链接失效反馈官方服务:
资源简介:
# Stack Exchange
## Description
[StackExchange](https://stackexchange.com) is a collection of Q&A communities spanning a wide variety of topics.
While StackExchange formerly provided structured dumps of all of their content, since July of 2024, StackExchange has stopped publishing XML dumps to the Internet Archive.
Instead, each site can provide a logged in user with a custom url to download the dump for that site.
This means that dumps for defunct sites like [windowsphone.stackexchange.com](https://windowsphone.stackexchange.com/) are inaccessible.
Additionally, in dumps produced by the new export tool, many questions that are available in past dumps (and accessible on the site) are not present.
For this reason, we extract all questions and answers from community uploaded dumps from December of 2024 from the internet archive and additionally extract missing questions and answers from the last official dumps in July of 2024 to account for the deficiencies listed above.
We use a question, its comments, its answers and the comments on each answer as a single document.
Following the display order on StackExchange, answers are ordered by the number of votes they received, with the exception that the “accepted answer” always appears first.
PyMarkdown was used to convert each comment into plain text.
Per-document license information is available in the `license` entry of the `metadata` field of each example.
Code for collecting, processing, and preparing this dataset is available in the [common-pile GitHub repo](https://github.com/r-three/common-pile).
## Dataset Statistics
| Documents | UTF-8 GB |
|-----------|----------|
| 33,415,400 | 103.7 |
## License Issues
While we aim to produce datasets with completely accurate licensing information, license laundering and inaccurate metadata can cause us to erroneously assign the incorrect license to some documents (for further discussion of this limitation, please see [our paper](https://huggingface.co/papers/2506.05209)). If you believe you have found an instance of incorrect licensing in this dataset, please [start a discussion](https://github.com/r-three/common-pile/discussions/new) on this repository.
## Other Versions
This is the "raw" version of the StackExchange dataset.
If you are looking for the filtered version used to train [Comma v0.1](https://huggingface.co/common-pile/comma-v0.1), you can find it [here](https://huggingface.co/datasets/common-pile/stackexchange_filtered).
## Citation
If you use this dataset, please cite:
```bibtex
@article{kandpal2025common,
title={{The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text}},
author={Nikhil Kandpal and Brian Lester and Colin Raffel and Sebastian Majstorovic and Stella Biderman and Baber Abbasi and Luca Soldaini and Enrico Shippole and A. Feder Cooper and Aviya Skowron and Shayne Longpre and Lintang Sutawika and Alon Albalak and Zhenlin Xu and Guilherme Penedo and Loubna Ben and Elie Bakouch and John David and Honglu Fan and Dashiell Stander and Guangyu Song and Aaron Gokaslan and John Kirchenbauer and Tom Goldstein and Brian R and Bhavya Kailkhura and Tyler Murray},
journal={arXiv preprint},
year={2025}
}
```
# Stack Exchange(堆栈交换)
## 描述
[堆栈交换(Stack Exchange)](https://stackexchange.com)是涵盖众多主题的问答社区集合。
尽管堆栈交换此前曾发布其所有内容的结构化数据转储文件,但自2024年7月起,堆栈交换已停止向互联网档案馆(Internet Archive)发布XML格式的数据转储文件。
取而代之的是,各站点可为已登录用户提供专属链接,用以下载该站点的数据转储文件。
这意味着诸如[windowsphone.stackexchange.com](https://windowsphone.stackexchange.com/)这类已停运站点的数据转储文件已无法获取。
此外,在新导出工具生成的转储文件中,许多过往转储文件中存在(且可在站点内访问)的问答问题并未被包含在内。
为此,我们从互联网档案馆的2024年12月社区上传转储文件中提取所有问答内容,并额外从2024年7月的最后一批官方转储文件中提取缺失的问答内容,以弥补上述缺陷。
我们将单个问题及其评论、该问题的所有回答以及每条回答下的评论整合为一份文档。
遵循堆栈交换站点的展示顺序,回答将按获票数排序,但“已采纳回答”始终置于首位。
我们使用PyMarkdown工具将所有评论转换为纯文本格式。
每份文档的授权信息可在每条数据样本的`metadata`字段下的`license`条目内获取。
本数据集的收集、处理与制备代码可在[common-pile GitHub仓库](https://github.com/r-three/common-pile)获取。
## 数据集统计
| 文档数量 | UTF-8 容量(GB) |
|-----------|----------|
| 33,415,400 | 103.7 |
## 授权问题
尽管我们致力于生成授权信息完全准确的数据集,但授权洗白与元数据不准确可能导致我们为部分文档错误分配了不当授权。如需进一步讨论此局限性,请参阅[我们的论文](https://huggingface.co/papers/2506.05209)。
若您发现本数据集存在授权信息错误的情况,请在本仓库[发起讨论](https://github.com/r-three/common-pile/discussions/new)。
## 其他版本
本文件为堆栈交换数据集的“原始版”。若您需查找用于训练[Comma v0.1](https://huggingface.co/common-pile/comma-v0.1)的过滤版数据集,可前往[此处](https://huggingface.co/datasets/common-pile/stackexchange_filtered)获取。
## 引用
若您使用本数据集,请引用如下文献:
bibtex
@article{kandpal2025common,
title={{The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text}},
author={Nikhil Kandpal and Brian Lester and Colin Raffel and Sebastian Majstorovic and Stella Biderman and Baber Abbasi and Luca Soldaini and Enrico Shippole and A. Feder Cooper and Aviya Skowron and Shayne Longpre and Lintang Sutawika and Alon Albalak and Zhenlin Xu and Guilherme Penedo and Loubna Ben and Elie Bakouch and John David and Honglu Fan and Dashiell Stander and Guangyu Song and Aaron Gokaslan and John Kirchenbauer and Tom Goldstein and Brian R and Bhavya Kailkhura and Tyler Murray},
journal={arXiv preprint},
year={2025}
}
提供机构:
maas
创建时间:
2025-06-11



