acc13027rk
commited on
Commit
•
33293d1
1
Parent(s):
5d16319
fix list issue
Browse files- m2d2.py +1 -4
- m2d2_split_names.py +1 -0
- split_names.txt +0 -239
m2d2.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import datasets
|
2 |
import os
|
3 |
from datasets import load_dataset
|
|
|
4 |
|
5 |
CITATION = """
|
6 |
@inproceedings{reid2022m2d2,
|
@@ -21,10 +22,6 @@ def _URLS(split):
|
|
21 |
return f"https://hugginface.co/datasets/machelreid/m2d2/resolve/main/data/{split}.tar.gz"
|
22 |
|
23 |
|
24 |
-
with open("./split_names.txt", "r") as f:
|
25 |
-
M2D2_SPLIT_NAMES = [i.strip() for i in f.readlines()]
|
26 |
-
|
27 |
-
|
28 |
class M2D2Config(datasets.BuilderConfig):
|
29 |
def __init__(self, features, citation, **kwargs):
|
30 |
super().__init__(**kwargs)
|
|
|
1 |
import datasets
|
2 |
import os
|
3 |
from datasets import load_dataset
|
4 |
+
from .m2d2_split_names import M2D2_SPLIT_NAMES
|
5 |
|
6 |
CITATION = """
|
7 |
@inproceedings{reid2022m2d2,
|
|
|
22 |
return f"https://hugginface.co/datasets/machelreid/m2d2/resolve/main/data/{split}.tar.gz"
|
23 |
|
24 |
|
|
|
|
|
|
|
|
|
25 |
class M2D2Config(datasets.BuilderConfig):
|
26 |
def __init__(self, features, citation, **kwargs):
|
27 |
super().__init__(**kwargs)
|
m2d2_split_names.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
M2D2_SPLIT_NAMES = ["Art", "Culture_and_the_arts", "Culture_and_the_arts__Culture_and_Humanities", "Culture_and_the_arts__Games_and_Toys", "Culture_and_the_arts__Mass_media", "Culture_and_the_arts__Performing_arts", "Culture_and_the_arts__Sports_and_Recreation", "Culture_and_the_arts__The_arts_and_Entertainment", "Culture_and_the_arts__Visual_arts", "General_referece", "General_referece__Further_research_tools_and_topics", "General_referece__Reference_works", "Health_and_fitness", "Health_and_fitness__Exercise", "Health_and_fitness__Health_science", "Health_and_fitness__Human_medicine", "Health_and_fitness__Nutrition", "Health_and_fitness__Public_health", "Health_and_fitness__Self_care", "History_and_events", "History_and_events__By_continent", "History_and_events__By_period", "History_and_events__By_region", "Human_activites", "Human_activites__Human_activities", "Human_activites__Impact_of_human_activity", "Mathematics_and_logic", "Mathematics_and_logic__Fields_of_mathematics", "Mathematics_and_logic__Logic", "Mathematics_and_logic__Mathematics", "Natural_and_physical_sciences", "Natural_and_physical_sciences__Biology", "Natural_and_physical_sciences__Earth_sciences", "Natural_and_physical_sciences__Nature", "Natural_and_physical_sciences__Physical_sciences", "Philosophy", "Philosophy_and_thinking", "Philosophy_and_thinking__Philosophy", "Philosophy_and_thinking__Thinking", "Religion_and_belief_systems", "Religion_and_belief_systems__Allah", "Religion_and_belief_systems__Belief_systems", "Religion_and_belief_systems__Major_beliefs_of_the_world", "Society_and_social_sciences", "Society_and_social_sciences__Social_sciences", "Society_and_social_sciences__Society", "Technology_and_applied_sciences", "Technology_and_applied_sciences__Agriculture", "Technology_and_applied_sciences__Computing", "Technology_and_applied_sciences__Engineering", "Technology_and_applied_sciences__Transport", "alg-geom", "ao-sci", "astro-ph", "astro-ph.CO", "astro-ph.EP", "astro-ph.GA", "astro-ph.HE", "astro-ph.IM", "astro-ph.SR", "astro-ph_l1", "atom-ph", "bayes-an", "chao-dyn", "chem-ph", "cmp-lg", "comp-gas", "cond-mat", "cond-mat.dis-nn", "cond-mat.mes-hall", "cond-mat.mtrl-sci", "cond-mat.other", "cond-mat.quant-gas", "cond-mat.soft", "cond-mat.stat-mech", "cond-mat.str-el", "cond-mat.supr-con", "cond-mat_l1", "cs.AI", "cs.AR", "cs.CC", "cs.CE", "cs.CG", "cs.CL", "cs.CR", "cs.CV", "cs.CY", "cs.DB", "cs.DC", "cs.DL", "cs.DM", "cs.DS", "cs.ET", "cs.FL", "cs.GL", "cs.GR", "cs.GT", "cs.HC", "cs.IR", "cs.IT", "cs.LG", "cs.LO", "cs.MA", "cs.MM", "cs.MS", "cs.NA", "cs.NE", "cs.NI", "cs.OH", "cs.OS", "cs.PF", "cs.PL", "cs.RO", "cs.SC", "cs.SD", "cs.SE", "cs.SI", "cs.SY", "cs_l1", "dg-ga", "econ.EM", "econ.GN", "econ.TH", "econ_l1", "eess.AS", "eess.IV", "eess.SP", "eess.SY", "eess_l1", "eval_sets", "funct-an", "gr-qc", "hep-ex", "hep-lat", "hep-ph", "hep-th", "math-ph", "math.AC", "math.AG", "math.AP", "math.AT", "math.CA", "math.CO", "math.CT", "math.CV", "math.DG", "math.DS", "math.FA", "math.GM", "math.GN", "math.GR", "math.GT", "math.HO", "math.IT", "math.KT", "math.LO", "math.MG", "math.MP", "math.NA", "math.NT", "math.OA", "math.OC", "math.PR", "math.QA", "math.RA", "math.RT", "math.SG", "math.SP", "math.ST", "math_l1", "mtrl-th", "nlin.AO", "nlin.CD", "nlin.CG", "nlin.PS", "nlin.SI", "nlin_l1", "nucl-ex", "nucl-th", "only_text", "only_txt2", "patt-sol", "physics.acc-ph", "physics.ao-ph", "physics.app-ph", "physics.atm-clus", "physics.atom-ph", "physics.bio-ph", "physics.chem-ph", "physics.class-ph", "physics.comp-ph", "physics.data-an", "physics.ed-ph", "physics.flu-dyn", "physics.gen-ph", "physics.geo-ph", "physics.hist-ph", "physics.ins-det", "physics.med-ph", "physics.optics", "physics.plasm-ph", "physics.pop-ph", "physics.soc-ph", "physics.space-ph", "physics_l1", "plasm-ph", "q-alg", "q-bio", "q-bio.BM", "q-bio.CB", "q-bio.GN", "q-bio.MN", "q-bio.NC", "q-bio.OT", "q-bio.PE", "q-bio.QM", "q-bio.SC", "q-bio.TO", "q-bio_l1", "q-fin.CP", "q-fin.EC", "q-fin.GN", "q-fin.MF", "q-fin.PM", "q-fin.PR", "q-fin.RM", "q-fin.ST", "q-fin.TR", "q-fin_l1", "quant-ph", "solv-int", "stat.AP", "stat.CO", "stat.ME", "stat.ML", "stat.OT", "stat.TH", "stat_l1", "supr-con"]
|
split_names.txt
DELETED
@@ -1,239 +0,0 @@
|
|
1 |
-
Art
|
2 |
-
Culture_and_the_arts
|
3 |
-
Culture_and_the_arts__Culture_and_Humanities
|
4 |
-
Culture_and_the_arts__Games_and_Toys
|
5 |
-
Culture_and_the_arts__Mass_media
|
6 |
-
Culture_and_the_arts__Performing_arts
|
7 |
-
Culture_and_the_arts__Sports_and_Recreation
|
8 |
-
Culture_and_the_arts__The_arts_and_Entertainment
|
9 |
-
Culture_and_the_arts__Visual_arts
|
10 |
-
General_referece
|
11 |
-
General_referece__Further_research_tools_and_topics
|
12 |
-
General_referece__Reference_works
|
13 |
-
Health_and_fitness
|
14 |
-
Health_and_fitness__Exercise
|
15 |
-
Health_and_fitness__Health_science
|
16 |
-
Health_and_fitness__Human_medicine
|
17 |
-
Health_and_fitness__Nutrition
|
18 |
-
Health_and_fitness__Public_health
|
19 |
-
Health_and_fitness__Self_care
|
20 |
-
History_and_events
|
21 |
-
History_and_events__By_continent
|
22 |
-
History_and_events__By_period
|
23 |
-
History_and_events__By_region
|
24 |
-
Human_activites
|
25 |
-
Human_activites__Human_activities
|
26 |
-
Human_activites__Impact_of_human_activity
|
27 |
-
Mathematics_and_logic
|
28 |
-
Mathematics_and_logic__Fields_of_mathematics
|
29 |
-
Mathematics_and_logic__Logic
|
30 |
-
Mathematics_and_logic__Mathematics
|
31 |
-
Natural_and_physical_sciences
|
32 |
-
Natural_and_physical_sciences__Biology
|
33 |
-
Natural_and_physical_sciences__Earth_sciences
|
34 |
-
Natural_and_physical_sciences__Nature
|
35 |
-
Natural_and_physical_sciences__Physical_sciences
|
36 |
-
Philosophy
|
37 |
-
Philosophy_and_thinking
|
38 |
-
Philosophy_and_thinking__Philosophy
|
39 |
-
Philosophy_and_thinking__Thinking
|
40 |
-
Religion_and_belief_systems
|
41 |
-
Religion_and_belief_systems__Allah
|
42 |
-
Religion_and_belief_systems__Belief_systems
|
43 |
-
Religion_and_belief_systems__Major_beliefs_of_the_world
|
44 |
-
Society_and_social_sciences
|
45 |
-
Society_and_social_sciences__Social_sciences
|
46 |
-
Society_and_social_sciences__Society
|
47 |
-
Technology_and_applied_sciences
|
48 |
-
Technology_and_applied_sciences__Agriculture
|
49 |
-
Technology_and_applied_sciences__Computing
|
50 |
-
Technology_and_applied_sciences__Engineering
|
51 |
-
Technology_and_applied_sciences__Transport
|
52 |
-
alg-geom
|
53 |
-
ao-sci
|
54 |
-
astro-ph
|
55 |
-
astro-ph.CO
|
56 |
-
astro-ph.EP
|
57 |
-
astro-ph.GA
|
58 |
-
astro-ph.HE
|
59 |
-
astro-ph.IM
|
60 |
-
astro-ph.SR
|
61 |
-
astro-ph_l1
|
62 |
-
atom-ph
|
63 |
-
bayes-an
|
64 |
-
chao-dyn
|
65 |
-
chem-ph
|
66 |
-
cmp-lg
|
67 |
-
comp-gas
|
68 |
-
cond-mat
|
69 |
-
cond-mat.dis-nn
|
70 |
-
cond-mat.mes-hall
|
71 |
-
cond-mat.mtrl-sci
|
72 |
-
cond-mat.other
|
73 |
-
cond-mat.quant-gas
|
74 |
-
cond-mat.soft
|
75 |
-
cond-mat.stat-mech
|
76 |
-
cond-mat.str-el
|
77 |
-
cond-mat.supr-con
|
78 |
-
cond-mat_l1
|
79 |
-
cs.AI
|
80 |
-
cs.AR
|
81 |
-
cs.CC
|
82 |
-
cs.CE
|
83 |
-
cs.CG
|
84 |
-
cs.CL
|
85 |
-
cs.CR
|
86 |
-
cs.CV
|
87 |
-
cs.CY
|
88 |
-
cs.DB
|
89 |
-
cs.DC
|
90 |
-
cs.DL
|
91 |
-
cs.DM
|
92 |
-
cs.DS
|
93 |
-
cs.ET
|
94 |
-
cs.FL
|
95 |
-
cs.GL
|
96 |
-
cs.GR
|
97 |
-
cs.GT
|
98 |
-
cs.HC
|
99 |
-
cs.IR
|
100 |
-
cs.IT
|
101 |
-
cs.LG
|
102 |
-
cs.LO
|
103 |
-
cs.MA
|
104 |
-
cs.MM
|
105 |
-
cs.MS
|
106 |
-
cs.NA
|
107 |
-
cs.NE
|
108 |
-
cs.NI
|
109 |
-
cs.OH
|
110 |
-
cs.OS
|
111 |
-
cs.PF
|
112 |
-
cs.PL
|
113 |
-
cs.RO
|
114 |
-
cs.SC
|
115 |
-
cs.SD
|
116 |
-
cs.SE
|
117 |
-
cs.SI
|
118 |
-
cs.SY
|
119 |
-
cs_l1
|
120 |
-
dg-ga
|
121 |
-
econ.EM
|
122 |
-
econ.GN
|
123 |
-
econ.TH
|
124 |
-
econ_l1
|
125 |
-
eess.AS
|
126 |
-
eess.IV
|
127 |
-
eess.SP
|
128 |
-
eess.SY
|
129 |
-
eess_l1
|
130 |
-
eval_sets
|
131 |
-
funct-an
|
132 |
-
gr-qc
|
133 |
-
hep-ex
|
134 |
-
hep-lat
|
135 |
-
hep-ph
|
136 |
-
hep-th
|
137 |
-
math-ph
|
138 |
-
math.AC
|
139 |
-
math.AG
|
140 |
-
math.AP
|
141 |
-
math.AT
|
142 |
-
math.CA
|
143 |
-
math.CO
|
144 |
-
math.CT
|
145 |
-
math.CV
|
146 |
-
math.DG
|
147 |
-
math.DS
|
148 |
-
math.FA
|
149 |
-
math.GM
|
150 |
-
math.GN
|
151 |
-
math.GR
|
152 |
-
math.GT
|
153 |
-
math.HO
|
154 |
-
math.IT
|
155 |
-
math.KT
|
156 |
-
math.LO
|
157 |
-
math.MG
|
158 |
-
math.MP
|
159 |
-
math.NA
|
160 |
-
math.NT
|
161 |
-
math.OA
|
162 |
-
math.OC
|
163 |
-
math.PR
|
164 |
-
math.QA
|
165 |
-
math.RA
|
166 |
-
math.RT
|
167 |
-
math.SG
|
168 |
-
math.SP
|
169 |
-
math.ST
|
170 |
-
math_l1
|
171 |
-
mtrl-th
|
172 |
-
nlin.AO
|
173 |
-
nlin.CD
|
174 |
-
nlin.CG
|
175 |
-
nlin.PS
|
176 |
-
nlin.SI
|
177 |
-
nlin_l1
|
178 |
-
nucl-ex
|
179 |
-
nucl-th
|
180 |
-
only_text
|
181 |
-
only_txt2
|
182 |
-
patt-sol
|
183 |
-
physics.acc-ph
|
184 |
-
physics.ao-ph
|
185 |
-
physics.app-ph
|
186 |
-
physics.atm-clus
|
187 |
-
physics.atom-ph
|
188 |
-
physics.bio-ph
|
189 |
-
physics.chem-ph
|
190 |
-
physics.class-ph
|
191 |
-
physics.comp-ph
|
192 |
-
physics.data-an
|
193 |
-
physics.ed-ph
|
194 |
-
physics.flu-dyn
|
195 |
-
physics.gen-ph
|
196 |
-
physics.geo-ph
|
197 |
-
physics.hist-ph
|
198 |
-
physics.ins-det
|
199 |
-
physics.med-ph
|
200 |
-
physics.optics
|
201 |
-
physics.plasm-ph
|
202 |
-
physics.pop-ph
|
203 |
-
physics.soc-ph
|
204 |
-
physics.space-ph
|
205 |
-
physics_l1
|
206 |
-
plasm-ph
|
207 |
-
q-alg
|
208 |
-
q-bio
|
209 |
-
q-bio.BM
|
210 |
-
q-bio.CB
|
211 |
-
q-bio.GN
|
212 |
-
q-bio.MN
|
213 |
-
q-bio.NC
|
214 |
-
q-bio.OT
|
215 |
-
q-bio.PE
|
216 |
-
q-bio.QM
|
217 |
-
q-bio.SC
|
218 |
-
q-bio.TO
|
219 |
-
q-bio_l1
|
220 |
-
q-fin.CP
|
221 |
-
q-fin.EC
|
222 |
-
q-fin.GN
|
223 |
-
q-fin.MF
|
224 |
-
q-fin.PM
|
225 |
-
q-fin.PR
|
226 |
-
q-fin.RM
|
227 |
-
q-fin.ST
|
228 |
-
q-fin.TR
|
229 |
-
q-fin_l1
|
230 |
-
quant-ph
|
231 |
-
solv-int
|
232 |
-
stat.AP
|
233 |
-
stat.CO
|
234 |
-
stat.ME
|
235 |
-
stat.ML
|
236 |
-
stat.OT
|
237 |
-
stat.TH
|
238 |
-
stat_l1
|
239 |
-
supr-con
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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