Commit
·
badc645
verified
·
0
Parent(s):
Duplicate from math-ai/StackMathQA
Browse filesCo-authored-by: Yifan Zhang <[email protected]>
- .gitattributes +58 -0
- LICENSE +395 -0
- README.md +210 -0
- data/stackmathqa100k/all.jsonl +3 -0
- data/stackmathqa100k/answer_count_frequencies.txt +15 -0
- data/stackmathqa100k/meta.json +3 -0
- data/stackmathqa100k/source_counts.txt +11 -0
- data/stackmathqa1600k/all.jsonl +3 -0
- data/stackmathqa1600k/answer_count_frequencies.txt +73 -0
- data/stackmathqa1600k/meta.json +3 -0
- data/stackmathqa1600k/source_counts.txt +11 -0
- data/stackmathqa200k/all.jsonl +3 -0
- data/stackmathqa200k/answer_count_frequencies.txt +19 -0
- data/stackmathqa200k/meta.json +3 -0
- data/stackmathqa200k/source_counts.txt +11 -0
- data/stackmathqa400k/all.jsonl +3 -0
- data/stackmathqa400k/answer_count_frequencies.txt +25 -0
- data/stackmathqa400k/meta.json +3 -0
- data/stackmathqa400k/source_counts.txt +11 -0
- data/stackmathqa800k/all.jsonl +3 -0
- data/stackmathqa800k/answer_count_frequencies.txt +37 -0
- data/stackmathqa800k/meta.json +3 -0
- data/stackmathqa800k/source_counts.txt +11 -0
- preprocessed/README.md +18 -0
- preprocessed/stackexchange-math--1q1a/math.stackexchange.com.jsonl +3 -0
- preprocessed/stackexchange-math--1q1a/mathoverflow.net.jsonl +3 -0
- preprocessed/stackexchange-math--1q1a/physics.stackexchange.com.jsonl +3 -0
- preprocessed/stackexchange-math--1q1a/stats.stackexchange.com.jsonl +3 -0
- preprocessed/stackexchange-math/math.stackexchange.com.jsonl +3 -0
- preprocessed/stackexchange-math/mathoverflow.net.jsonl +3 -0
- preprocessed/stackexchange-math/physics.stackexchange.com.jsonl +3 -0
- preprocessed/stackexchange-math/stats.stackexchange.com.jsonl +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 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,395 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Attribution 4.0 International
|
| 2 |
+
|
| 3 |
+
=======================================================================
|
| 4 |
+
|
| 5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
| 6 |
+
does not provide legal services or legal advice. Distribution of
|
| 7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
| 8 |
+
other relationship. Creative Commons makes its licenses and related
|
| 9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
| 10 |
+
warranties regarding its licenses, any material licensed under their
|
| 11 |
+
terms and conditions, or any related information. Creative Commons
|
| 12 |
+
disclaims all liability for damages resulting from their use to the
|
| 13 |
+
fullest extent possible.
|
| 14 |
+
|
| 15 |
+
Using Creative Commons Public Licenses
|
| 16 |
+
|
| 17 |
+
Creative Commons public licenses provide a standard set of terms and
|
| 18 |
+
conditions that creators and other rights holders may use to share
|
| 19 |
+
original works of authorship and other material subject to copyright
|
| 20 |
+
and certain other rights specified in the public license below. The
|
| 21 |
+
following considerations are for informational purposes only, are not
|
| 22 |
+
exhaustive, and do not form part of our licenses.
|
| 23 |
+
|
| 24 |
+
Considerations for licensors: Our public licenses are
|
| 25 |
+
intended for use by those authorized to give the public
|
| 26 |
+
permission to use material in ways otherwise restricted by
|
| 27 |
+
copyright and certain other rights. Our licenses are
|
| 28 |
+
irrevocable. Licensors should read and understand the terms
|
| 29 |
+
and conditions of the license they choose before applying it.
|
| 30 |
+
Licensors should also secure all rights necessary before
|
| 31 |
+
applying our licenses so that the public can reuse the
|
| 32 |
+
material as expected. Licensors should clearly mark any
|
| 33 |
+
material not subject to the license. This includes other CC-
|
| 34 |
+
licensed material, or material used under an exception or
|
| 35 |
+
limitation to copyright. More considerations for licensors:
|
| 36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
| 37 |
+
|
| 38 |
+
Considerations for the public: By using one of our public
|
| 39 |
+
licenses, a licensor grants the public permission to use the
|
| 40 |
+
licensed material under specified terms and conditions. If
|
| 41 |
+
the licensor's permission is not necessary for any reason--for
|
| 42 |
+
example, because of any applicable exception or limitation to
|
| 43 |
+
copyright--then that use is not regulated by the license. Our
|
| 44 |
+
licenses grant only permissions under copyright and certain
|
| 45 |
+
other rights that a licensor has authority to grant. Use of
|
| 46 |
+
the licensed material may still be restricted for other
|
| 47 |
+
reasons, including because others have copyright or other
|
| 48 |
+
rights in the material. A licensor may make special requests,
|
| 49 |
+
such as asking that all changes be marked or described.
|
| 50 |
+
Although not required by our licenses, you are encouraged to
|
| 51 |
+
respect those requests where reasonable. More_considerations
|
| 52 |
+
for the public:
|
| 53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
| 54 |
+
|
| 55 |
+
=======================================================================
|
| 56 |
+
|
| 57 |
+
Creative Commons Attribution 4.0 International Public License
|
| 58 |
+
|
| 59 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 60 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 61 |
+
Attribution 4.0 International Public License ("Public License"). To the
|
| 62 |
+
extent this Public License may be interpreted as a contract, You are
|
| 63 |
+
granted the Licensed Rights in consideration of Your acceptance of
|
| 64 |
+
these terms and conditions, and the Licensor grants You such rights in
|
| 65 |
+
consideration of benefits the Licensor receives from making the
|
| 66 |
+
Licensed Material available under these terms and conditions.
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
Section 1 -- Definitions.
|
| 70 |
+
|
| 71 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 72 |
+
Rights that is derived from or based upon the Licensed Material
|
| 73 |
+
and in which the Licensed Material is translated, altered,
|
| 74 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 75 |
+
permission under the Copyright and Similar Rights held by the
|
| 76 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 77 |
+
Material is a musical work, performance, or sound recording,
|
| 78 |
+
Adapted Material is always produced where the Licensed Material is
|
| 79 |
+
synched in timed relation with a moving image.
|
| 80 |
+
|
| 81 |
+
b. Adapter's License means the license You apply to Your Copyright
|
| 82 |
+
and Similar Rights in Your contributions to Adapted Material in
|
| 83 |
+
accordance with the terms and conditions of this Public License.
|
| 84 |
+
|
| 85 |
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
| 86 |
+
closely related to copyright including, without limitation,
|
| 87 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 88 |
+
Rights, without regard to how the rights are labeled or
|
| 89 |
+
categorized. For purposes of this Public License, the rights
|
| 90 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 91 |
+
Rights.
|
| 92 |
+
|
| 93 |
+
d. Effective Technological Measures means those measures that, in the
|
| 94 |
+
absence of proper authority, may not be circumvented under laws
|
| 95 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 96 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 97 |
+
agreements.
|
| 98 |
+
|
| 99 |
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 100 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 101 |
+
that applies to Your use of the Licensed Material.
|
| 102 |
+
|
| 103 |
+
f. Licensed Material means the artistic or literary work, database,
|
| 104 |
+
or other material to which the Licensor applied this Public
|
| 105 |
+
License.
|
| 106 |
+
|
| 107 |
+
g. Licensed Rights means the rights granted to You subject to the
|
| 108 |
+
terms and conditions of this Public License, which are limited to
|
| 109 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 110 |
+
Licensed Material and that the Licensor has authority to license.
|
| 111 |
+
|
| 112 |
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
| 113 |
+
under this Public License.
|
| 114 |
+
|
| 115 |
+
i. Share means to provide material to the public by any means or
|
| 116 |
+
process that requires permission under the Licensed Rights, such
|
| 117 |
+
as reproduction, public display, public performance, distribution,
|
| 118 |
+
dissemination, communication, or importation, and to make material
|
| 119 |
+
available to the public including in ways that members of the
|
| 120 |
+
public may access the material from a place and at a time
|
| 121 |
+
individually chosen by them.
|
| 122 |
+
|
| 123 |
+
j. Sui Generis Database Rights means rights other than copyright
|
| 124 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 125 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 126 |
+
as amended and/or succeeded, as well as other essentially
|
| 127 |
+
equivalent rights anywhere in the world.
|
| 128 |
+
|
| 129 |
+
k. You means the individual or entity exercising the Licensed Rights
|
| 130 |
+
under this Public License. Your has a corresponding meaning.
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
Section 2 -- Scope.
|
| 134 |
+
|
| 135 |
+
a. License grant.
|
| 136 |
+
|
| 137 |
+
1. Subject to the terms and conditions of this Public License,
|
| 138 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 139 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 140 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 141 |
+
|
| 142 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 143 |
+
in part; and
|
| 144 |
+
|
| 145 |
+
b. produce, reproduce, and Share Adapted Material.
|
| 146 |
+
|
| 147 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 148 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 149 |
+
License does not apply, and You do not need to comply with
|
| 150 |
+
its terms and conditions.
|
| 151 |
+
|
| 152 |
+
3. Term. The term of this Public License is specified in Section
|
| 153 |
+
6(a).
|
| 154 |
+
|
| 155 |
+
4. Media and formats; technical modifications allowed. The
|
| 156 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 157 |
+
all media and formats whether now known or hereafter created,
|
| 158 |
+
and to make technical modifications necessary to do so. The
|
| 159 |
+
Licensor waives and/or agrees not to assert any right or
|
| 160 |
+
authority to forbid You from making technical modifications
|
| 161 |
+
necessary to exercise the Licensed Rights, including
|
| 162 |
+
technical modifications necessary to circumvent Effective
|
| 163 |
+
Technological Measures. For purposes of this Public License,
|
| 164 |
+
simply making modifications authorized by this Section 2(a)
|
| 165 |
+
(4) never produces Adapted Material.
|
| 166 |
+
|
| 167 |
+
5. Downstream recipients.
|
| 168 |
+
|
| 169 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 170 |
+
recipient of the Licensed Material automatically
|
| 171 |
+
receives an offer from the Licensor to exercise the
|
| 172 |
+
Licensed Rights under the terms and conditions of this
|
| 173 |
+
Public License.
|
| 174 |
+
|
| 175 |
+
b. No downstream restrictions. You may not offer or impose
|
| 176 |
+
any additional or different terms or conditions on, or
|
| 177 |
+
apply any Effective Technological Measures to, the
|
| 178 |
+
Licensed Material if doing so restricts exercise of the
|
| 179 |
+
Licensed Rights by any recipient of the Licensed
|
| 180 |
+
Material.
|
| 181 |
+
|
| 182 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 183 |
+
may be construed as permission to assert or imply that You
|
| 184 |
+
are, or that Your use of the Licensed Material is, connected
|
| 185 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 186 |
+
the Licensor or others designated to receive attribution as
|
| 187 |
+
provided in Section 3(a)(1)(A)(i).
|
| 188 |
+
|
| 189 |
+
b. Other rights.
|
| 190 |
+
|
| 191 |
+
1. Moral rights, such as the right of integrity, are not
|
| 192 |
+
licensed under this Public License, nor are publicity,
|
| 193 |
+
privacy, and/or other similar personality rights; however, to
|
| 194 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 195 |
+
assert any such rights held by the Licensor to the limited
|
| 196 |
+
extent necessary to allow You to exercise the Licensed
|
| 197 |
+
Rights, but not otherwise.
|
| 198 |
+
|
| 199 |
+
2. Patent and trademark rights are not licensed under this
|
| 200 |
+
Public License.
|
| 201 |
+
|
| 202 |
+
3. To the extent possible, the Licensor waives any right to
|
| 203 |
+
collect royalties from You for the exercise of the Licensed
|
| 204 |
+
Rights, whether directly or through a collecting society
|
| 205 |
+
under any voluntary or waivable statutory or compulsory
|
| 206 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 207 |
+
reserves any right to collect such royalties.
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
Section 3 -- License Conditions.
|
| 211 |
+
|
| 212 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 213 |
+
following conditions.
|
| 214 |
+
|
| 215 |
+
a. Attribution.
|
| 216 |
+
|
| 217 |
+
1. If You Share the Licensed Material (including in modified
|
| 218 |
+
form), You must:
|
| 219 |
+
|
| 220 |
+
a. retain the following if it is supplied by the Licensor
|
| 221 |
+
with the Licensed Material:
|
| 222 |
+
|
| 223 |
+
i. identification of the creator(s) of the Licensed
|
| 224 |
+
Material and any others designated to receive
|
| 225 |
+
attribution, in any reasonable manner requested by
|
| 226 |
+
the Licensor (including by pseudonym if
|
| 227 |
+
designated);
|
| 228 |
+
|
| 229 |
+
ii. a copyright notice;
|
| 230 |
+
|
| 231 |
+
iii. a notice that refers to this Public License;
|
| 232 |
+
|
| 233 |
+
iv. a notice that refers to the disclaimer of
|
| 234 |
+
warranties;
|
| 235 |
+
|
| 236 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 237 |
+
extent reasonably practicable;
|
| 238 |
+
|
| 239 |
+
b. indicate if You modified the Licensed Material and
|
| 240 |
+
retain an indication of any previous modifications; and
|
| 241 |
+
|
| 242 |
+
c. indicate the Licensed Material is licensed under this
|
| 243 |
+
Public License, and include the text of, or the URI or
|
| 244 |
+
hyperlink to, this Public License.
|
| 245 |
+
|
| 246 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 247 |
+
reasonable manner based on the medium, means, and context in
|
| 248 |
+
which You Share the Licensed Material. For example, it may be
|
| 249 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 250 |
+
hyperlink to a resource that includes the required
|
| 251 |
+
information.
|
| 252 |
+
|
| 253 |
+
3. If requested by the Licensor, You must remove any of the
|
| 254 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 255 |
+
reasonably practicable.
|
| 256 |
+
|
| 257 |
+
4. If You Share Adapted Material You produce, the Adapter's
|
| 258 |
+
License You apply must not prevent recipients of the Adapted
|
| 259 |
+
Material from complying with this Public License.
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
Section 4 -- Sui Generis Database Rights.
|
| 263 |
+
|
| 264 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 265 |
+
apply to Your use of the Licensed Material:
|
| 266 |
+
|
| 267 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 268 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 269 |
+
portion of the contents of the database;
|
| 270 |
+
|
| 271 |
+
b. if You include all or a substantial portion of the database
|
| 272 |
+
contents in a database in which You have Sui Generis Database
|
| 273 |
+
Rights, then the database in which You have Sui Generis Database
|
| 274 |
+
Rights (but not its individual contents) is Adapted Material; and
|
| 275 |
+
|
| 276 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 277 |
+
all or a substantial portion of the contents of the database.
|
| 278 |
+
|
| 279 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 280 |
+
replace Your obligations under this Public License where the Licensed
|
| 281 |
+
Rights include other Copyright and Similar Rights.
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 285 |
+
|
| 286 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 287 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 288 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 289 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 290 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 291 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 292 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 293 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 294 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 295 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 296 |
+
|
| 297 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 298 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 299 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 300 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 301 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 302 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 303 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 304 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 305 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 306 |
+
|
| 307 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 308 |
+
above shall be interpreted in a manner that, to the extent
|
| 309 |
+
possible, most closely approximates an absolute disclaimer and
|
| 310 |
+
waiver of all liability.
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
Section 6 -- Term and Termination.
|
| 314 |
+
|
| 315 |
+
a. This Public License applies for the term of the Copyright and
|
| 316 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 317 |
+
this Public License, then Your rights under this Public License
|
| 318 |
+
terminate automatically.
|
| 319 |
+
|
| 320 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 321 |
+
Section 6(a), it reinstates:
|
| 322 |
+
|
| 323 |
+
1. automatically as of the date the violation is cured, provided
|
| 324 |
+
it is cured within 30 days of Your discovery of the
|
| 325 |
+
violation; or
|
| 326 |
+
|
| 327 |
+
2. upon express reinstatement by the Licensor.
|
| 328 |
+
|
| 329 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 330 |
+
right the Licensor may have to seek remedies for Your violations
|
| 331 |
+
of this Public License.
|
| 332 |
+
|
| 333 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 334 |
+
Licensed Material under separate terms or conditions or stop
|
| 335 |
+
distributing the Licensed Material at any time; however, doing so
|
| 336 |
+
will not terminate this Public License.
|
| 337 |
+
|
| 338 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 339 |
+
License.
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
Section 7 -- Other Terms and Conditions.
|
| 343 |
+
|
| 344 |
+
a. The Licensor shall not be bound by any additional or different
|
| 345 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 346 |
+
|
| 347 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 348 |
+
Licensed Material not stated herein are separate from and
|
| 349 |
+
independent of the terms and conditions of this Public License.
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
Section 8 -- Interpretation.
|
| 353 |
+
|
| 354 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 355 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 356 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 357 |
+
be made without permission under this Public License.
|
| 358 |
+
|
| 359 |
+
b. To the extent possible, if any provision of this Public License is
|
| 360 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 361 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 362 |
+
cannot be reformed, it shall be severed from this Public License
|
| 363 |
+
without affecting the enforceability of the remaining terms and
|
| 364 |
+
conditions.
|
| 365 |
+
|
| 366 |
+
c. No term or condition of this Public License will be waived and no
|
| 367 |
+
failure to comply consented to unless expressly agreed to by the
|
| 368 |
+
Licensor.
|
| 369 |
+
|
| 370 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 371 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 372 |
+
that apply to the Licensor or You, including from the legal
|
| 373 |
+
processes of any jurisdiction or authority.
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
=======================================================================
|
| 377 |
+
|
| 378 |
+
Creative Commons is not a party to its public
|
| 379 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
| 380 |
+
its public licenses to material it publishes and in those instances
|
| 381 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
| 382 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
| 383 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
| 384 |
+
material is shared under a Creative Commons public license or as
|
| 385 |
+
otherwise permitted by the Creative Commons policies published at
|
| 386 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
| 387 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
| 388 |
+
of Creative Commons without its prior written consent including,
|
| 389 |
+
without limitation, in connection with any unauthorized modifications
|
| 390 |
+
to any of its public licenses or any other arrangements,
|
| 391 |
+
understandings, or agreements concerning use of licensed material. For
|
| 392 |
+
the avoidance of doubt, this paragraph does not form part of the
|
| 393 |
+
public licenses.
|
| 394 |
+
|
| 395 |
+
Creative Commons may be contacted at creativecommons.org.
|
README.md
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
pretty_name: StackMathQA
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1B<n<10B
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: stackmathqa1600k
|
| 13 |
+
data_files: data/stackmathqa1600k/all.jsonl
|
| 14 |
+
default: true
|
| 15 |
+
- config_name: stackmathqa800k
|
| 16 |
+
data_files: data/stackmathqa800k/all.jsonl
|
| 17 |
+
- config_name: stackmathqa400k
|
| 18 |
+
data_files: data/stackmathqa400k/all.jsonl
|
| 19 |
+
- config_name: stackmathqa200k
|
| 20 |
+
data_files: data/stackmathqa200k/all.jsonl
|
| 21 |
+
- config_name: stackmathqa100k
|
| 22 |
+
data_files: data/stackmathqa100k/all.jsonl
|
| 23 |
+
- config_name: stackmathqafull-1q1a
|
| 24 |
+
data_files: preprocessed/stackexchange-math--1q1a/*.jsonl
|
| 25 |
+
- config_name: stackmathqafull-qalist
|
| 26 |
+
data_files: preprocessed/stackexchange-math/*.jsonl
|
| 27 |
+
tags:
|
| 28 |
+
- mathematical-reasoning
|
| 29 |
+
- reasoning
|
| 30 |
+
- finetuning
|
| 31 |
+
- pretraining
|
| 32 |
+
- llm
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
# StackMathQA
|
| 36 |
+
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 AI research.
|
| 37 |
+
|
| 38 |
+
## Configs
|
| 39 |
+
|
| 40 |
+
```YAML
|
| 41 |
+
configs:
|
| 42 |
+
- config_name: stackmathqa1600k
|
| 43 |
+
data_files: data/stackmathqa1600k/all.jsonl
|
| 44 |
+
default: true
|
| 45 |
+
- config_name: stackmathqa800k
|
| 46 |
+
data_files: data/stackmathqa800k/all.jsonl
|
| 47 |
+
- config_name: stackmathqa400k
|
| 48 |
+
data_files: data/stackmathqa400k/all.jsonl
|
| 49 |
+
- config_name: stackmathqa200k
|
| 50 |
+
data_files: data/stackmathqa200k/all.jsonl
|
| 51 |
+
- config_name: stackmathqa100k
|
| 52 |
+
data_files: data/stackmathqa100k/all.jsonl
|
| 53 |
+
- config_name: stackmathqafull-1q1a
|
| 54 |
+
data_files: preprocessed/stackexchange-math--1q1a/*.jsonl
|
| 55 |
+
- config_name: stackmathqafull-qalist
|
| 56 |
+
data_files: preprocessed/stackexchange-math/*.jsonl
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
How to load data:
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from datasets import load_dataset
|
| 63 |
+
|
| 64 |
+
ds = load_dataset("math-ai/StackMathQA", "stackmathqa1600k") # or any valid config_name
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Preprocessed Data
|
| 68 |
+
In the `./preprocessed/stackexchange-math` directory and `./preprocessed/stackexchange-math--1q1a` directory, you will find the data structured in two formats:
|
| 69 |
+
|
| 70 |
+
1. **Question and List of Answers Format**:
|
| 71 |
+
Each entry is structured as {"Q": "question", "A_List": ["answer1", "answer2", ...]}.
|
| 72 |
+
- `math.stackexchange.com.jsonl`: 827,439 lines
|
| 73 |
+
- `mathoverflow.net.jsonl`: 90,645 lines
|
| 74 |
+
- `stats.stackexchange.com.jsonl`: 103,024 lines
|
| 75 |
+
- `physics.stackexchange.com.jsonl`: 117,318 lines
|
| 76 |
+
- In total: **1,138,426** questions
|
| 77 |
+
|
| 78 |
+
```YAML
|
| 79 |
+
dataset_info:
|
| 80 |
+
features:
|
| 81 |
+
- name: Q
|
| 82 |
+
dtype: string
|
| 83 |
+
description: "The mathematical question in LaTeX encoded format."
|
| 84 |
+
- name: A_list
|
| 85 |
+
dtype: sequence
|
| 86 |
+
description: "The list of answers to the mathematical question, also in LaTeX encoded."
|
| 87 |
+
- name: meta
|
| 88 |
+
dtype: dict
|
| 89 |
+
description: "A collection of metadata for each question and its corresponding answer list."
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
2. **Question and Single Answer Format**:
|
| 93 |
+
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.
|
| 94 |
+
- `math.stackexchange.com.jsonl`: 1,407,739 lines
|
| 95 |
+
- `mathoverflow.net.jsonl`: 166,592 lines
|
| 96 |
+
- `stats.stackexchange.com.jsonl`: 156,143 lines
|
| 97 |
+
- `physics.stackexchange.com.jsonl`: 226,532 lines
|
| 98 |
+
- In total: **1,957,006** answers
|
| 99 |
+
|
| 100 |
+
```YAML
|
| 101 |
+
dataset_info:
|
| 102 |
+
features:
|
| 103 |
+
- name: Q
|
| 104 |
+
dtype: string
|
| 105 |
+
description: "The mathematical question in LaTeX encoded format."
|
| 106 |
+
- name: A
|
| 107 |
+
dtype: string
|
| 108 |
+
description: "The answer to the mathematical question, also in LaTeX encoded."
|
| 109 |
+
- name: meta
|
| 110 |
+
dtype: dict
|
| 111 |
+
description: "A collection of metadata for each question-answer pair."
|
| 112 |
+
```
|
| 113 |
+
|
| 114 |
+
## Selected Data
|
| 115 |
+
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:
|
| 116 |
+
|
| 117 |
+
```YAML
|
| 118 |
+
dataset_info:
|
| 119 |
+
features:
|
| 120 |
+
- name: Q
|
| 121 |
+
dtype: string
|
| 122 |
+
description: "The mathematical question in LaTeX encoded format."
|
| 123 |
+
- name: A
|
| 124 |
+
dtype: string
|
| 125 |
+
description: "The answer to the mathematical question, also in LaTeX encoded."
|
| 126 |
+
- name: meta
|
| 127 |
+
dtype: dict
|
| 128 |
+
description: "A collection of metadata for each question-answer pair."
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
### StackMathQA1600K
|
| 132 |
+
- Location: `./data/stackmathqa1600k`
|
| 133 |
+
- Contents:
|
| 134 |
+
- `all.jsonl`: Containing 1.6 million entries.
|
| 135 |
+
- `meta.json`: Metadata and additional information.
|
| 136 |
+
|
| 137 |
+
```bash
|
| 138 |
+
Source: Stack Exchange (Math), Count: 1244887
|
| 139 |
+
Source: MathOverflow, Count: 110041
|
| 140 |
+
Source: Stack Exchange (Stats), Count: 99878
|
| 141 |
+
Source: Stack Exchange (Physics), Count: 145194
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
Similar structures are available for StackMathQA800K, StackMathQA400K, StackMathQA200K, and StackMathQA100K subsets.
|
| 145 |
+
|
| 146 |
+
### StackMathQA800K
|
| 147 |
+
- Location: `./data/stackmathqa800k`
|
| 148 |
+
- Contents:
|
| 149 |
+
- `all.jsonl`: Containing 800k entries.
|
| 150 |
+
- `meta.json`: Metadata and additional information.
|
| 151 |
+
|
| 152 |
+
```bash
|
| 153 |
+
Source: Stack Exchange (Math), Count: 738850
|
| 154 |
+
Source: MathOverflow, Count: 24276
|
| 155 |
+
Source: Stack Exchange (Stats), Count: 15046
|
| 156 |
+
Source: Stack Exchange (Physics), Count: 21828
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
### StackMathQA400K
|
| 160 |
+
|
| 161 |
+
- Location: `./data/stackmathqa400k`
|
| 162 |
+
- Contents:
|
| 163 |
+
- `all.jsonl`: Containing 400k entries.
|
| 164 |
+
- `meta.json`: Metadata and additional information.
|
| 165 |
+
|
| 166 |
+
```bash
|
| 167 |
+
Source: Stack Exchange (Math), Count: 392940
|
| 168 |
+
Source: MathOverflow, Count: 3963
|
| 169 |
+
Source: Stack Exchange (Stats), Count: 1637
|
| 170 |
+
Source: Stack Exchange (Physics), Count: 1460
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
### StackMathQA200K
|
| 174 |
+
|
| 175 |
+
- Location: `./data/stackmathqa200k`
|
| 176 |
+
- Contents:
|
| 177 |
+
- `all.jsonl`: Containing 200k entries.
|
| 178 |
+
- `meta.json`: Metadata and additional information.
|
| 179 |
+
|
| 180 |
+
```bash
|
| 181 |
+
Source: Stack Exchange (Math), Count: 197792
|
| 182 |
+
Source: MathOverflow, Count: 1367
|
| 183 |
+
Source: Stack Exchange (Stats), Count: 423
|
| 184 |
+
Source: Stack Exchange (Physics), Count: 418
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
### StackMathQA100K
|
| 188 |
+
|
| 189 |
+
- Location: `./data/stackmathqa100k`
|
| 190 |
+
- Contents:
|
| 191 |
+
- `all.jsonl`: Containing 100k entries.
|
| 192 |
+
- `meta.json`: Metadata and additional information.
|
| 193 |
+
|
| 194 |
+
```bash
|
| 195 |
+
Source: Stack Exchange (Math), Count: 99013
|
| 196 |
+
Source: MathOverflow, Count: 626
|
| 197 |
+
Source: Stack Exchange (Stats), Count: 182
|
| 198 |
+
Source: Stack Exchange (Physics), Count: 179
|
| 199 |
+
```
|
| 200 |
+
|
| 201 |
+
## Citation
|
| 202 |
+
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 [email protected] or open an issue if you have any questions.
|
| 203 |
+
|
| 204 |
+
```bibtex
|
| 205 |
+
@misc{stackmathqa2024,
|
| 206 |
+
title={StackMathQA: A Curated Collection of 2 Million Mathematical Questions and Answers Sourced from Stack Exchange},
|
| 207 |
+
author={Zhang, Yifan},
|
| 208 |
+
year={2024},
|
| 209 |
+
}
|
| 210 |
+
```
|
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
|