yifAI commited on
Commit
e23fb6d
1 Parent(s): 6c88ae6

Add StackMathQA v0.0.1 files

Browse files
Files changed (32) hide show
  1. .gitattributes +3 -0
  2. LICENSE +21 -0
  3. README.md +93 -0
  4. data/stackmathqa100k/all.jsonl +3 -0
  5. data/stackmathqa100k/answer_count_frequencies.txt +15 -0
  6. data/stackmathqa100k/meta.json +3 -0
  7. data/stackmathqa100k/source_counts.txt +11 -0
  8. data/stackmathqa1600k/all.jsonl +3 -0
  9. data/stackmathqa1600k/answer_count_frequencies.txt +73 -0
  10. data/stackmathqa1600k/meta.json +3 -0
  11. data/stackmathqa1600k/source_counts.txt +11 -0
  12. data/stackmathqa200k/all.jsonl +3 -0
  13. data/stackmathqa200k/answer_count_frequencies.txt +19 -0
  14. data/stackmathqa200k/meta.json +3 -0
  15. data/stackmathqa200k/source_counts.txt +11 -0
  16. data/stackmathqa400k/all.jsonl +3 -0
  17. data/stackmathqa400k/answer_count_frequencies.txt +25 -0
  18. data/stackmathqa400k/meta.json +3 -0
  19. data/stackmathqa400k/source_counts.txt +11 -0
  20. data/stackmathqa800k/all.jsonl +3 -0
  21. data/stackmathqa800k/answer_count_frequencies.txt +37 -0
  22. data/stackmathqa800k/meta.json +3 -0
  23. data/stackmathqa800k/source_counts.txt +11 -0
  24. preprocessed/README.md +18 -0
  25. preprocessed/stackexchange-math--1q1a/math.stackexchange.com.jsonl +3 -0
  26. preprocessed/stackexchange-math--1q1a/mathoverflow.net.jsonl +3 -0
  27. preprocessed/stackexchange-math--1q1a/physics.stackexchange.com.jsonl +3 -0
  28. preprocessed/stackexchange-math--1q1a/stats.stackexchange.com.jsonl +3 -0
  29. preprocessed/stackexchange-math/math.stackexchange.com.jsonl +3 -0
  30. preprocessed/stackexchange-math/mathoverflow.net.jsonl +3 -0
  31. preprocessed/stackexchange-math/physics.stackexchange.com.jsonl +3 -0
  32. preprocessed/stackexchange-math/stats.stackexchange.com.jsonl +3 -0
.gitattributes CHANGED
@@ -53,3 +53,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ # JSON files
57
+ *.json filter=lfs diff=lfs merge=lfs -text
58
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Yifan Zhang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: Q
5
+ dtype: string
6
+ description: "The mathematical question in LaTeX encoded format."
7
+ - name: A
8
+ dtype: string
9
+ description: "The answer to the mathematical question, also in LaTeX encoded format."
10
+ - name: metadata
11
+ dtype: object
12
+ description: "A collection of metadata for each question-answer pair."
13
+ fields:
14
+ - name: language
15
+ dtype: string
16
+ description: "The language in which the question and answer are written."
17
+ - name: url
18
+ dtype: string
19
+ description: "The URL of the original question on Stack Exchange."
20
+ - name: timestamp
21
+ dtype: string
22
+ description: "The date and time when the question was posted."
23
+ - name: source
24
+ dtype: string
25
+ description: "The source from which the data was obtained, in this case, Stack Exchange."
26
+ - name: question_score
27
+ dtype: integer
28
+ description: "The score (upvotes - downvotes) of the question."
29
+ - name: answer_count
30
+ dtype: integer
31
+ description: "The number of answers the question received."
32
+ - name: answer_id
33
+ dtype: integer
34
+ description: "A unique identifier for the answer."
35
+ license: mit
36
+ task_categories:
37
+ - text-generation
38
+ language:
39
+ - en
40
+ pretty_name: StackMathQA
41
+ size_categories:
42
+ - 1B<n<10B
43
+ ---
44
+
45
+ # StackMathQA
46
+ StackMathQA is a meticulously curated collection of **2 million** mathematical questions and answers, sourced from various Stack Exchange sites. This repository is designed to serve as a comprehensive resource for researchers, educators, and enthusiasts in the field of mathematics and data science.
47
+
48
+ ## Preprocessed Data
49
+ In the `./preprocessed/stackexchange-math` directory and `./preprocessed/stackexchange-math--1q1a` directory, you will find the data structured in two formats:
50
+
51
+ 1. **Question and List of Answers Format**:
52
+ Each entry is structured as {"Q": "question", "A_List": ["answer1", "answer2", ...]}.
53
+ - `math.stackexchange.com.jsonl`: 827,439 lines
54
+ - `mathoverflow.net.jsonl`: 90,645 lines
55
+ - `stats.stackexchange.com.jsonl`: 103,024 lines
56
+ - `physics.stackexchange.com.jsonl`: 117,318 lines
57
+ - In total: **1,138,426** questions
58
+
59
+ 2. **Question and Single Answer Format**:
60
+ Each line contains a question and one corresponding answer, structured as {"Q": "question", "A": "answer"}. Multiple answers for the same question are separated into different lines.
61
+ - `math.stackexchange.com.jsonl`: 1,407,739 lines
62
+ - `mathoverflow.net.jsonl`: 166,592 lines
63
+ - `stats.stackexchange.com.jsonl`: 156,143 lines
64
+ - `physics.stackexchange.com.jsonl`: 226,532 lines
65
+ - In total: **1,957,006** answers
66
+
67
+ ## Selected Data
68
+ The dataset has been carefully curated using importance sampling. We offer selected subsets of the dataset (`./preprocessed/stackexchange-math--1q1a`) with different sizes to cater to varied needs:
69
+
70
+ ### StackMathQA1600K
71
+ - Location: `./data/stackmathqa1600k`
72
+ - Contents:
73
+ - `all.jsonl`: Containing 1.6 million entries.
74
+ - `meta.json`: Metadata and additional information.
75
+
76
+ ### StackMathQA800K
77
+ - Location: `./data/stackmathqa800k`
78
+ - Contents:
79
+ - `all.jsonl`: Containing 800k entries.
80
+ - `meta.json`: Metadata and additional information.
81
+
82
+ Similar structures are available for StackMathQA400K, StackMathQA200K, and StackMathQA100K subsets.
83
+
84
+ ## Citation
85
+ We appreciate your use of StackMathQA in your work. If you find this repository helpful, please consider citing it and star this repo. Feel free to contact zhangyif21@tsinghua.edu.cn or open an issue if you have any questions.
86
+
87
+ ```bibtex
88
+ @misc{stackmathqa2024,
89
+ title={StackMathQA: A Curated Collection of 2 Million High-Quality Mathematical Questions and Answers Sourced from Stack Exchange},
90
+ author={Yifan Zhang, et al.},
91
+ year={2024},
92
+ }
93
+ ```
data/stackmathqa100k/all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddf7526cb21600dcf93991e400393eb9adc3549a6077d0cd0b0d37c45e1b037a
3
+ size 181243920
data/stackmathqa100k/answer_count_frequencies.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Answer Count: 1, Frequency: 45835
2
+ Answer Count: 2, Frequency: 13105
3
+ Answer Count: 3, Frequency: 4805
4
+ Answer Count: 4, Frequency: 1842
5
+ Answer Count: 5, Frequency: 675
6
+ Answer Count: 6, Frequency: 257
7
+ Answer Count: 7, Frequency: 82
8
+ Answer Count: 8, Frequency: 37
9
+ Answer Count: 9, Frequency: 19
10
+ Answer Count: 10, Frequency: 7
11
+ Answer Count: 11, Frequency: 2
12
+ Answer Count: 12, Frequency: 4
13
+ Answer Count: 13, Frequency: 2
14
+ Answer Count: 15, Frequency: 2
15
+ Answer Count: 18, Frequency: 1
data/stackmathqa100k/meta.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d3682a34b520071a497030db79ffbdeac499c278c9a76462e08200cf28841f7
3
+ size 17085523
data/stackmathqa100k/source_counts.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Source: Stack Exchange (Math), Count: 99013
2
+ Source: MathOverflow, Count: 626
3
+ Source: Stack Exchange (Stats), Count: 182
4
+ Source: Stack Exchange (Physics), Count: 179
5
+
6
+
7
+ Line Counts of Original JSONL Files:
8
+ math.stackexchange.com.jsonl: 1407739 lines
9
+ mathoverflow.net.jsonl: 166592 lines
10
+ stats.stackexchange.com.jsonl: 156143 lines
11
+ physics.stackexchange.com.jsonl: 226532 lines
data/stackmathqa1600k/all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:100478515de0d389c14d0dc08cf2a5a433d0073e86674184ad30003b4aceb5c0
3
+ size 2586178831
data/stackmathqa1600k/answer_count_frequencies.txt ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Answer Count: 1, Frequency: 584061
2
+ Answer Count: 2, Frequency: 238947
3
+ Answer Count: 3, Frequency: 87633
4
+ Answer Count: 4, Frequency: 32574
5
+ Answer Count: 5, Frequency: 12259
6
+ Answer Count: 6, Frequency: 5171
7
+ Answer Count: 7, Frequency: 2207
8
+ Answer Count: 8, Frequency: 1059
9
+ Answer Count: 9, Frequency: 615
10
+ Answer Count: 10, Frequency: 338
11
+ Answer Count: 11, Frequency: 237
12
+ Answer Count: 12, Frequency: 140
13
+ Answer Count: 13, Frequency: 120
14
+ Answer Count: 14, Frequency: 88
15
+ Answer Count: 15, Frequency: 79
16
+ Answer Count: 16, Frequency: 51
17
+ Answer Count: 17, Frequency: 46
18
+ Answer Count: 18, Frequency: 37
19
+ Answer Count: 19, Frequency: 31
20
+ Answer Count: 20, Frequency: 28
21
+ Answer Count: 21, Frequency: 16
22
+ Answer Count: 22, Frequency: 13
23
+ Answer Count: 23, Frequency: 17
24
+ Answer Count: 24, Frequency: 12
25
+ Answer Count: 25, Frequency: 14
26
+ Answer Count: 26, Frequency: 10
27
+ Answer Count: 27, Frequency: 12
28
+ Answer Count: 28, Frequency: 16
29
+ Answer Count: 29, Frequency: 5
30
+ Answer Count: 30, Frequency: 5
31
+ Answer Count: 31, Frequency: 3
32
+ Answer Count: 32, Frequency: 8
33
+ Answer Count: 33, Frequency: 8
34
+ Answer Count: 34, Frequency: 2
35
+ Answer Count: 35, Frequency: 5
36
+ Answer Count: 36, Frequency: 1
37
+ Answer Count: 37, Frequency: 5
38
+ Answer Count: 38, Frequency: 4
39
+ Answer Count: 39, Frequency: 5
40
+ Answer Count: 40, Frequency: 2
41
+ Answer Count: 41, Frequency: 4
42
+ Answer Count: 42, Frequency: 3
43
+ Answer Count: 43, Frequency: 4
44
+ Answer Count: 44, Frequency: 2
45
+ Answer Count: 45, Frequency: 2
46
+ Answer Count: 46, Frequency: 1
47
+ Answer Count: 47, Frequency: 1
48
+ Answer Count: 48, Frequency: 5
49
+ Answer Count: 52, Frequency: 1
50
+ Answer Count: 54, Frequency: 2
51
+ Answer Count: 55, Frequency: 1
52
+ Answer Count: 56, Frequency: 2
53
+ Answer Count: 57, Frequency: 2
54
+ Answer Count: 58, Frequency: 2
55
+ Answer Count: 59, Frequency: 1
56
+ Answer Count: 60, Frequency: 1
57
+ Answer Count: 61, Frequency: 1
58
+ Answer Count: 62, Frequency: 1
59
+ Answer Count: 65, Frequency: 3
60
+ Answer Count: 66, Frequency: 2
61
+ Answer Count: 67, Frequency: 1
62
+ Answer Count: 73, Frequency: 2
63
+ Answer Count: 76, Frequency: 1
64
+ Answer Count: 79, Frequency: 1
65
+ Answer Count: 80, Frequency: 2
66
+ Answer Count: 82, Frequency: 1
67
+ Answer Count: 89, Frequency: 2
68
+ Answer Count: 90, Frequency: 1
69
+ Answer Count: 91, Frequency: 1
70
+ Answer Count: 98, Frequency: 1
71
+ Answer Count: 108, Frequency: 1
72
+ Answer Count: 116, Frequency: 1
73
+ Answer Count: 144, Frequency: 1
data/stackmathqa1600k/meta.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03e4cd49473d1a5ec5bb5e4979dcd529b5a6cce05a9cac0732e6c661b66a42ae
3
+ size 249516793
data/stackmathqa1600k/source_counts.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Source: Stack Exchange (Math), Count: 1244887
2
+ Source: MathOverflow, Count: 110041
3
+ Source: Stack Exchange (Stats), Count: 99878
4
+ Source: Stack Exchange (Physics), Count: 145194
5
+
6
+
7
+ Line Counts of Original JSONL Files:
8
+ math.stackexchange.com.jsonl: 1407739 lines
9
+ mathoverflow.net.jsonl: 166592 lines
10
+ stats.stackexchange.com.jsonl: 156143 lines
11
+ physics.stackexchange.com.jsonl: 226532 lines
data/stackmathqa200k/all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b1911eeeb9449756f7224e372f74baafb9216fad47f2bede711781dc0a8a31e
3
+ size 317039208
data/stackmathqa200k/answer_count_frequencies.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Answer Count: 1, Frequency: 76314
2
+ Answer Count: 2, Frequency: 27792
3
+ Answer Count: 3, Frequency: 11211
4
+ Answer Count: 4, Frequency: 4538
5
+ Answer Count: 5, Frequency: 1714
6
+ Answer Count: 6, Frequency: 687
7
+ Answer Count: 7, Frequency: 230
8
+ Answer Count: 8, Frequency: 100
9
+ Answer Count: 9, Frequency: 49
10
+ Answer Count: 10, Frequency: 20
11
+ Answer Count: 11, Frequency: 13
12
+ Answer Count: 12, Frequency: 14
13
+ Answer Count: 13, Frequency: 9
14
+ Answer Count: 14, Frequency: 1
15
+ Answer Count: 15, Frequency: 2
16
+ Answer Count: 16, Frequency: 1
17
+ Answer Count: 19, Frequency: 2
18
+ Answer Count: 22, Frequency: 1
19
+ Answer Count: 26, Frequency: 1
data/stackmathqa200k/meta.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1d969f71ff5409ee9b30ca0d2f9193a596ba96999e26cbecbd8d1daff837f49
3
+ size 31677442
data/stackmathqa200k/source_counts.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Source: Stack Exchange (Math), Count: 197792
2
+ Source: MathOverflow, Count: 1367
3
+ Source: Stack Exchange (Stats), Count: 423
4
+ Source: Stack Exchange (Physics), Count: 418
5
+
6
+
7
+ Line Counts of Original JSONL Files:
8
+ math.stackexchange.com.jsonl: 1407739 lines
9
+ mathoverflow.net.jsonl: 166592 lines
10
+ stats.stackexchange.com.jsonl: 156143 lines
11
+ physics.stackexchange.com.jsonl: 226532 lines
data/stackmathqa400k/all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb0e94c40b1454590d1ca61b02eb137ea55d495a81ec9cb3309db98e3b974757
3
+ size 565645073
data/stackmathqa400k/answer_count_frequencies.txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Answer Count: 1, Frequency: 135538
2
+ Answer Count: 2, Frequency: 57238
3
+ Answer Count: 3, Frequency: 24315
4
+ Answer Count: 4, Frequency: 9848
5
+ Answer Count: 5, Frequency: 3842
6
+ Answer Count: 6, Frequency: 1592
7
+ Answer Count: 7, Frequency: 590
8
+ Answer Count: 8, Frequency: 234
9
+ Answer Count: 9, Frequency: 111
10
+ Answer Count: 10, Frequency: 52
11
+ Answer Count: 11, Frequency: 33
12
+ Answer Count: 12, Frequency: 11
13
+ Answer Count: 13, Frequency: 19
14
+ Answer Count: 14, Frequency: 7
15
+ Answer Count: 15, Frequency: 11
16
+ Answer Count: 16, Frequency: 2
17
+ Answer Count: 17, Frequency: 4
18
+ Answer Count: 18, Frequency: 1
19
+ Answer Count: 19, Frequency: 2
20
+ Answer Count: 20, Frequency: 1
21
+ Answer Count: 21, Frequency: 1
22
+ Answer Count: 25, Frequency: 1
23
+ Answer Count: 32, Frequency: 1
24
+ Answer Count: 34, Frequency: 2
25
+ Answer Count: 39, Frequency: 1
data/stackmathqa400k/meta.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2cf69e4583817338f1bf624c5047237b09fe488bc5edebdf440c8cfa35b2a6d
3
+ size 60551848
data/stackmathqa400k/source_counts.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Source: Stack Exchange (Math), Count: 392940
2
+ Source: MathOverflow, Count: 3963
3
+ Source: Stack Exchange (Stats), Count: 1637
4
+ Source: Stack Exchange (Physics), Count: 1460
5
+
6
+
7
+ Line Counts of Original JSONL Files:
8
+ math.stackexchange.com.jsonl: 1407739 lines
9
+ mathoverflow.net.jsonl: 166592 lines
10
+ stats.stackexchange.com.jsonl: 156143 lines
11
+ physics.stackexchange.com.jsonl: 226532 lines
data/stackmathqa800k/all.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ce9b73a775e058142608ff67f3f2cd35577c401d4b42ba52ac3f6ec68706bf7
3
+ size 1078394694
data/stackmathqa800k/answer_count_frequencies.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Answer Count: 1, Frequency: 291151
2
+ Answer Count: 2, Frequency: 116740
3
+ Answer Count: 3, Frequency: 45794
4
+ Answer Count: 4, Frequency: 17618
5
+ Answer Count: 5, Frequency: 6646
6
+ Answer Count: 6, Frequency: 2641
7
+ Answer Count: 7, Frequency: 1093
8
+ Answer Count: 8, Frequency: 466
9
+ Answer Count: 9, Frequency: 233
10
+ Answer Count: 10, Frequency: 113
11
+ Answer Count: 11, Frequency: 61
12
+ Answer Count: 12, Frequency: 43
13
+ Answer Count: 13, Frequency: 31
14
+ Answer Count: 14, Frequency: 21
15
+ Answer Count: 15, Frequency: 18
16
+ Answer Count: 16, Frequency: 13
17
+ Answer Count: 17, Frequency: 7
18
+ Answer Count: 18, Frequency: 5
19
+ Answer Count: 19, Frequency: 7
20
+ Answer Count: 20, Frequency: 6
21
+ Answer Count: 21, Frequency: 5
22
+ Answer Count: 22, Frequency: 3
23
+ Answer Count: 23, Frequency: 3
24
+ Answer Count: 24, Frequency: 4
25
+ Answer Count: 25, Frequency: 4
26
+ Answer Count: 26, Frequency: 2
27
+ Answer Count: 28, Frequency: 1
28
+ Answer Count: 29, Frequency: 1
29
+ Answer Count: 30, Frequency: 1
30
+ Answer Count: 32, Frequency: 1
31
+ Answer Count: 33, Frequency: 2
32
+ Answer Count: 34, Frequency: 1
33
+ Answer Count: 35, Frequency: 1
34
+ Answer Count: 41, Frequency: 1
35
+ Answer Count: 43, Frequency: 2
36
+ Answer Count: 44, Frequency: 1
37
+ Answer Count: 96, Frequency: 1
data/stackmathqa800k/meta.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c09201f5e9f792fe28de05e6d8205b1a8030afc4aa8c1980d6427b05ef83c8d
3
+ size 124744454
data/stackmathqa800k/source_counts.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Source: Stack Exchange (Math), Count: 738850
2
+ Source: MathOverflow, Count: 24276
3
+ Source: Stack Exchange (Stats), Count: 15046
4
+ Source: Stack Exchange (Physics), Count: 21828
5
+
6
+
7
+ Line Counts of Original JSONL Files:
8
+ math.stackexchange.com.jsonl: 1407739 lines
9
+ mathoverflow.net.jsonl: 166592 lines
10
+ stats.stackexchange.com.jsonl: 156143 lines
11
+ physics.stackexchange.com.jsonl: 226532 lines
preprocessed/README.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Preprocessed Data
2
+ In the `./stackexchange-math` directory and `./stackexchange-math--1q1a` directory, you will find the data structured in two formats:
3
+
4
+ 1. **Question and List of Answers Format**:
5
+ Each entry is structured as {"Q": "question", "A_List": ["answer1", "answer2", ...]}.
6
+ - `math.stackexchange.com.jsonl`: 827,439 lines
7
+ - `mathoverflow.net.jsonl`: 90,645 lines
8
+ - `stats.stackexchange.com.jsonl`: 103,024 lines
9
+ - `physics.stackexchange.com.jsonl`: 117,318 lines
10
+ - In total: **1,138,426** questions
11
+
12
+ 2. **Question and Single Answer Format**:
13
+ Each line contains a question and one corresponding answer, structured as {"Q": "question", "A": "answer"}. Multiple answers for the same question are separated into different lines.
14
+ - `math.stackexchange.com.jsonl`: 1,407,739 lines
15
+ - `mathoverflow.net.jsonl`: 166,592 lines
16
+ - `stats.stackexchange.com.jsonl`: 156,143 lines
17
+ - `physics.stackexchange.com.jsonl`: 226,532 lines
18
+ - In total: **1,957,006** answers
preprocessed/stackexchange-math--1q1a/math.stackexchange.com.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8d4e4b7badc49d4cfe801a5b54b3161689d65ca9c2f0569c54b2db203f992d5
3
+ size 2542313382
preprocessed/stackexchange-math--1q1a/mathoverflow.net.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4f608c73b5908373263c1598e07713c20f3f8370c82a47f0614ae6826e41073
3
+ size 412995652
preprocessed/stackexchange-math--1q1a/physics.stackexchange.com.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:267e85607d860663b812ea5e72807d5f4559d366bef523b54bba865836259d93
3
+ size 555170318
preprocessed/stackexchange-math--1q1a/stats.stackexchange.com.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:105a6fc5b4da6de018b055a27f1eca82da91b77cc25eae5b780f2e5245462c56
3
+ size 372136928
preprocessed/stackexchange-math/math.stackexchange.com.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa2cd05cc2ad20305feab6cccc135fe7d9e848fae4b9dd12cc2a8309393ee579
3
+ size 1997489639
preprocessed/stackexchange-math/mathoverflow.net.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d8fe0b4708edddb745f7800b98b2fed79231aeb4cf59a8a385d7498da8c9ddf
3
+ size 308458945
preprocessed/stackexchange-math/physics.stackexchange.com.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee0187bfbacdbaa5b619f1118ff1ed21e3bc622f701bb5f648dea928da7c9874
3
+ size 431855563
preprocessed/stackexchange-math/stats.stackexchange.com.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44ce47c751e5cc2bbcfd71eedee9b9ee50be897f974a9d0ea8a3f7bb58889494
3
+ size 309021806