Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -1,11 +1,51 @@
|
|
1 |
---
|
2 |
configs:
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
---
|
9 |
# Stack Exchange
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
configs:
|
3 |
+
- config_name: default
|
4 |
+
data_files:
|
5 |
+
- split: train
|
6 |
+
path:
|
7 |
+
- '*/documents/*.gz'
|
8 |
+
task_categories:
|
9 |
+
- text-generation
|
10 |
+
language:
|
11 |
+
- en
|
12 |
+
pretty_name: StackExchange
|
13 |
---
|
14 |
# Stack Exchange
|
15 |
|
16 |
+
## Description
|
17 |
+
[StackExchange](https://stackexchange.com) is a collection of Q&A communities spanning a wide variety of topics.
|
18 |
+
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.
|
19 |
+
Instead, each site can provide a logged in user with a custom url to download the dump for that site.
|
20 |
+
This means that dumps for defunct sites like [windowsphone.stackexchange.com](https://windowsphone.stackexchange.com/) are inaccessible.
|
21 |
+
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.
|
22 |
+
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.
|
23 |
+
We use a question, its comments, its answers and the comments on each answer as a single document.
|
24 |
+
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.
|
25 |
+
PyMarkdown was used to convert each comment into plain text.
|
26 |
+
Per-document license information is available in the `license` entry of the `metadata` field of each example.
|
27 |
+
Code for collecting, processing, and preparing this dataset is available in the [common-pile GitHub repo](https://github.com/r-three/common-pile).
|
28 |
+
|
29 |
+
## Dataset Statistics
|
30 |
+
| Documents | UTF-8 GB |
|
31 |
+
|-----------|----------|
|
32 |
+
| 33,415,400 | 103.7 |
|
33 |
+
|
34 |
+
## License Issues
|
35 |
+
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](TODO link)). 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.
|
36 |
+
|
37 |
+
|
38 |
+
## Other Versions
|
39 |
+
This is the "raw" version of the StackExchange dataset.
|
40 |
+
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).
|
41 |
+
|
42 |
+
## Citation
|
43 |
+
If you use this dataset, please cite:
|
44 |
+
```bibtex
|
45 |
+
@article{kandpal2025common,
|
46 |
+
title={{The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text}},
|
47 |
+
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},
|
48 |
+
journal={arXiv preprint},
|
49 |
+
year={2025}
|
50 |
+
}
|
51 |
+
```
|