Datasets:
Ubuntu
commited on
Commit
·
643635f
1
Parent(s):
6a4068b
Making v1_6 sample version
Browse files- LICENSE.md +428 -0
- README.md +139 -0
- dolma-v1_6-sample.py +140 -0
- urls/v1.txt +0 -0
- urls/v1_5-sample.txt +0 -0
- urls/v1_5.txt +0 -0
- urls/v1_6-sample.txt +103 -0
- urls/v1_6.txt +0 -0
- urls/v1_7.txt +0 -0
LICENSE.md
ADDED
@@ -0,0 +1,428 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ODC Attribution License (ODC-By)
|
2 |
+
|
3 |
+
### Preamble
|
4 |
+
|
5 |
+
The Open Data Commons Attribution License is a license agreement
|
6 |
+
intended to allow users to freely share, modify, and use this Database
|
7 |
+
subject only to the attribution requirements set out in Section 4.
|
8 |
+
|
9 |
+
Databases can contain a wide variety of types of content (images,
|
10 |
+
audiovisual material, and sounds all in the same database, for example),
|
11 |
+
and so this license only governs the rights over the Database, and not
|
12 |
+
the contents of the Database individually. Licensors may therefore wish
|
13 |
+
to use this license together with another license for the contents.
|
14 |
+
|
15 |
+
Sometimes the contents of a database, or the database itself, can be
|
16 |
+
covered by other rights not addressed here (such as private contracts,
|
17 |
+
trademark over the name, or privacy rights / data protection rights
|
18 |
+
over information in the contents), and so you are advised that you may
|
19 |
+
have to consult other documents or clear other rights before doing
|
20 |
+
activities not covered by this License.
|
21 |
+
|
22 |
+
------
|
23 |
+
|
24 |
+
The Licensor (as defined below)
|
25 |
+
|
26 |
+
and
|
27 |
+
|
28 |
+
You (as defined below)
|
29 |
+
|
30 |
+
agree as follows:
|
31 |
+
|
32 |
+
### 1.0 Definitions of Capitalised Words
|
33 |
+
|
34 |
+
"Collective Database" - Means this Database in unmodified form as part
|
35 |
+
of a collection of independent databases in themselves that together are
|
36 |
+
assembled into a collective whole. A work that constitutes a Collective
|
37 |
+
Database will not be considered a Derivative Database.
|
38 |
+
|
39 |
+
"Convey" - As a verb, means Using the Database, a Derivative Database,
|
40 |
+
or the Database as part of a Collective Database in any way that enables
|
41 |
+
a Person to make or receive copies of the Database or a Derivative
|
42 |
+
Database. Conveying does not include interaction with a user through a
|
43 |
+
computer network, or creating and Using a Produced Work, where no
|
44 |
+
transfer of a copy of the Database or a Derivative Database occurs.
|
45 |
+
|
46 |
+
"Contents" - The contents of this Database, which includes the
|
47 |
+
information, independent works, or other material collected into the
|
48 |
+
Database. For example, the contents of the Database could be factual
|
49 |
+
data or works such as images, audiovisual material, text, or sounds.
|
50 |
+
|
51 |
+
"Database" - A collection of material (the Contents) arranged in a
|
52 |
+
systematic or methodical way and individually accessible by electronic
|
53 |
+
or other means offered under the terms of this License.
|
54 |
+
|
55 |
+
"Database Directive" - Means Directive 96/9/EC of the European
|
56 |
+
Parliament and of the Council of 11 March 1996 on the legal protection
|
57 |
+
of databases, as amended or succeeded.
|
58 |
+
|
59 |
+
"Database Right" - Means rights resulting from the Chapter III ("sui
|
60 |
+
generis") rights in the Database Directive (as amended and as transposed
|
61 |
+
by member states), which includes the Extraction and Re-utilisation of
|
62 |
+
the whole or a Substantial part of the Contents, as well as any similar
|
63 |
+
rights available in the relevant jurisdiction under Section 10.4.
|
64 |
+
|
65 |
+
"Derivative Database" - Means a database based upon the Database, and
|
66 |
+
includes any translation, adaptation, arrangement, modification, or any
|
67 |
+
other alteration of the Database or of a Substantial part of the
|
68 |
+
Contents. This includes, but is not limited to, Extracting or
|
69 |
+
Re-utilising the whole or a Substantial part of the Contents in a new
|
70 |
+
Database.
|
71 |
+
|
72 |
+
"Extraction" - Means the permanent or temporary transfer of all or a
|
73 |
+
Substantial part of the Contents to another medium by any means or in
|
74 |
+
any form.
|
75 |
+
|
76 |
+
"License" - Means this license agreement and is both a license of rights
|
77 |
+
such as copyright and Database Rights and an agreement in contract.
|
78 |
+
|
79 |
+
"Licensor" - Means the Person that offers the Database under the terms
|
80 |
+
of this License.
|
81 |
+
|
82 |
+
"Person" - Means a natural or legal person or a body of persons
|
83 |
+
corporate or incorporate.
|
84 |
+
|
85 |
+
"Produced Work" - a work (such as an image, audiovisual material, text,
|
86 |
+
or sounds) resulting from using the whole or a Substantial part of the
|
87 |
+
Contents (via a search or other query) from this Database, a Derivative
|
88 |
+
Database, or this Database as part of a Collective Database.
|
89 |
+
|
90 |
+
"Publicly" - means to Persons other than You or under Your control by
|
91 |
+
either more than 50% ownership or by the power to direct their
|
92 |
+
activities (such as contracting with an independent consultant).
|
93 |
+
|
94 |
+
"Re-utilisation" - means any form of making available to the public all
|
95 |
+
or a Substantial part of the Contents by the distribution of copies, by
|
96 |
+
renting, by online or other forms of transmission.
|
97 |
+
|
98 |
+
"Substantial" - Means substantial in terms of quantity or quality or a
|
99 |
+
combination of both. The repeated and systematic Extraction or
|
100 |
+
Re-utilisation of insubstantial parts of the Contents may amount to the
|
101 |
+
Extraction or Re-utilisation of a Substantial part of the Contents.
|
102 |
+
|
103 |
+
"Use" - As a verb, means doing any act that is restricted by copyright
|
104 |
+
or Database Rights whether in the original medium or any other; and
|
105 |
+
includes without limitation distributing, copying, publicly performing,
|
106 |
+
publicly displaying, and preparing derivative works of the Database, as
|
107 |
+
well as modifying the Database as may be technically necessary to use it
|
108 |
+
in a different mode or format.
|
109 |
+
|
110 |
+
"You" - Means a Person exercising rights under this License who has not
|
111 |
+
previously violated the terms of this License with respect to the
|
112 |
+
Database, or who has received express permission from the Licensor to
|
113 |
+
exercise rights under this License despite a previous violation.
|
114 |
+
|
115 |
+
Words in the singular include the plural and vice versa.
|
116 |
+
|
117 |
+
### 2.0 What this License covers
|
118 |
+
|
119 |
+
2.1. Legal effect of this document. This License is:
|
120 |
+
|
121 |
+
a. A license of applicable copyright and neighbouring rights;
|
122 |
+
|
123 |
+
b. A license of the Database Right; and
|
124 |
+
|
125 |
+
c. An agreement in contract between You and the Licensor.
|
126 |
+
|
127 |
+
2.2 Legal rights covered. This License covers the legal rights in the
|
128 |
+
Database, including:
|
129 |
+
|
130 |
+
a. Copyright. Any copyright or neighbouring rights in the Database.
|
131 |
+
The copyright licensed includes any individual elements of the
|
132 |
+
Database, but does not cover the copyright over the Contents
|
133 |
+
independent of this Database. See Section 2.4 for details. Copyright
|
134 |
+
law varies between jurisdictions, but is likely to cover: the Database
|
135 |
+
model or schema, which is the structure, arrangement, and organisation
|
136 |
+
of the Database, and can also include the Database tables and table
|
137 |
+
indexes; the data entry and output sheets; and the Field names of
|
138 |
+
Contents stored in the Database;
|
139 |
+
|
140 |
+
b. Database Rights. Database Rights only extend to the Extraction and
|
141 |
+
Re-utilisation of the whole or a Substantial part of the Contents.
|
142 |
+
Database Rights can apply even when there is no copyright over the
|
143 |
+
Database. Database Rights can also apply when the Contents are removed
|
144 |
+
from the Database and are selected and arranged in a way that would
|
145 |
+
not infringe any applicable copyright; and
|
146 |
+
|
147 |
+
c. Contract. This is an agreement between You and the Licensor for
|
148 |
+
access to the Database. In return you agree to certain conditions of
|
149 |
+
use on this access as outlined in this License.
|
150 |
+
|
151 |
+
2.3 Rights not covered.
|
152 |
+
|
153 |
+
a. This License does not apply to computer programs used in the making
|
154 |
+
or operation of the Database;
|
155 |
+
|
156 |
+
b. This License does not cover any patents over the Contents or the
|
157 |
+
Database; and
|
158 |
+
|
159 |
+
c. This License does not cover any trademarks associated with the
|
160 |
+
Database.
|
161 |
+
|
162 |
+
2.4 Relationship to Contents in the Database. The individual items of
|
163 |
+
the Contents contained in this Database may be covered by other rights,
|
164 |
+
including copyright, patent, data protection, privacy, or personality
|
165 |
+
rights, and this License does not cover any rights (other than Database
|
166 |
+
Rights or in contract) in individual Contents contained in the Database.
|
167 |
+
For example, if used on a Database of images (the Contents), this
|
168 |
+
License would not apply to copyright over individual images, which could
|
169 |
+
have their own separate licenses, or one single license covering all of
|
170 |
+
the rights over the images.
|
171 |
+
|
172 |
+
### 3.0 Rights granted
|
173 |
+
|
174 |
+
3.1 Subject to the terms and conditions of this License, the Licensor
|
175 |
+
grants to You a worldwide, royalty-free, non-exclusive, terminable (but
|
176 |
+
only under Section 9) license to Use the Database for the duration of
|
177 |
+
any applicable copyright and Database Rights. These rights explicitly
|
178 |
+
include commercial use, and do not exclude any field of endeavour. To
|
179 |
+
the extent possible in the relevant jurisdiction, these rights may be
|
180 |
+
exercised in all media and formats whether now known or created in the
|
181 |
+
future.
|
182 |
+
|
183 |
+
The rights granted cover, for example:
|
184 |
+
|
185 |
+
a. Extraction and Re-utilisation of the whole or a Substantial part of
|
186 |
+
the Contents;
|
187 |
+
|
188 |
+
b. Creation of Derivative Databases;
|
189 |
+
|
190 |
+
c. Creation of Collective Databases;
|
191 |
+
|
192 |
+
d. Creation of temporary or permanent reproductions by any means and
|
193 |
+
in any form, in whole or in part, including of any Derivative
|
194 |
+
Databases or as a part of Collective Databases; and
|
195 |
+
|
196 |
+
e. Distribution, communication, display, lending, making available, or
|
197 |
+
performance to the public by any means and in any form, in whole or in
|
198 |
+
part, including of any Derivative Database or as a part of Collective
|
199 |
+
Databases.
|
200 |
+
|
201 |
+
3.2 Compulsory license schemes. For the avoidance of doubt:
|
202 |
+
|
203 |
+
a. Non-waivable compulsory license schemes. In those jurisdictions in
|
204 |
+
which the right to collect royalties through any statutory or
|
205 |
+
compulsory licensing scheme cannot be waived, the Licensor reserves
|
206 |
+
the exclusive right to collect such royalties for any exercise by You
|
207 |
+
of the rights granted under this License;
|
208 |
+
|
209 |
+
b. Waivable compulsory license schemes. In those jurisdictions in
|
210 |
+
which the right to collect royalties through any statutory or
|
211 |
+
compulsory licensing scheme can be waived, the Licensor waives the
|
212 |
+
exclusive right to collect such royalties for any exercise by You of
|
213 |
+
the rights granted under this License; and,
|
214 |
+
|
215 |
+
c. Voluntary license schemes. The Licensor waives the right to collect
|
216 |
+
royalties, whether individually or, in the event that the Licensor is
|
217 |
+
a member of a collecting society that administers voluntary licensing
|
218 |
+
schemes, via that society, from any exercise by You of the rights
|
219 |
+
granted under this License.
|
220 |
+
|
221 |
+
3.3 The right to release the Database under different terms, or to stop
|
222 |
+
distributing or making available the Database, is reserved. Note that
|
223 |
+
this Database may be multiple-licensed, and so You may have the choice
|
224 |
+
of using alternative licenses for this Database. Subject to Section
|
225 |
+
10.4, all other rights not expressly granted by Licensor are reserved.
|
226 |
+
|
227 |
+
### 4.0 Conditions of Use
|
228 |
+
|
229 |
+
4.1 The rights granted in Section 3 above are expressly made subject to
|
230 |
+
Your complying with the following conditions of use. These are important
|
231 |
+
conditions of this License, and if You fail to follow them, You will be
|
232 |
+
in material breach of its terms.
|
233 |
+
|
234 |
+
4.2 Notices. If You Publicly Convey this Database, any Derivative
|
235 |
+
Database, or the Database as part of a Collective Database, then You
|
236 |
+
must:
|
237 |
+
|
238 |
+
a. Do so only under the terms of this License;
|
239 |
+
|
240 |
+
b. Include a copy of this License or its Uniform Resource Identifier (URI)
|
241 |
+
with the Database or Derivative Database, including both in the
|
242 |
+
Database or Derivative Database and in any relevant documentation;
|
243 |
+
|
244 |
+
c. Keep intact any copyright or Database Right notices and notices
|
245 |
+
that refer to this License; and
|
246 |
+
|
247 |
+
d. If it is not possible to put the required notices in a particular
|
248 |
+
file due to its structure, then You must include the notices in a
|
249 |
+
location (such as a relevant directory) where users would be likely to
|
250 |
+
look for it.
|
251 |
+
|
252 |
+
4.3 Notice for using output (Contents). Creating and Using a Produced
|
253 |
+
Work does not require the notice in Section 4.2. However, if you
|
254 |
+
Publicly Use a Produced Work, You must include a notice associated with
|
255 |
+
the Produced Work reasonably calculated to make any Person that uses,
|
256 |
+
views, accesses, interacts with, or is otherwise exposed to the Produced
|
257 |
+
Work aware that Content was obtained from the Database, Derivative
|
258 |
+
Database, or the Database as part of a Collective Database, and that it
|
259 |
+
is available under this License.
|
260 |
+
|
261 |
+
a. Example notice. The following text will satisfy notice under
|
262 |
+
Section 4.3:
|
263 |
+
|
264 |
+
Contains information from DATABASE NAME which is made available
|
265 |
+
under the ODC Attribution License.
|
266 |
+
|
267 |
+
DATABASE NAME should be replaced with the name of the Database and a
|
268 |
+
hyperlink to the location of the Database. "ODC Attribution License"
|
269 |
+
should contain a hyperlink to the URI of the text of this License. If
|
270 |
+
hyperlinks are not possible, You should include the plain text of the
|
271 |
+
required URI's with the above notice.
|
272 |
+
|
273 |
+
4.4 Licensing of others. You may not sublicense the Database. Each time
|
274 |
+
You communicate the Database, the whole or Substantial part of the
|
275 |
+
Contents, or any Derivative Database to anyone else in any way, the
|
276 |
+
Licensor offers to the recipient a license to the Database on the same
|
277 |
+
terms and conditions as this License. You are not responsible for
|
278 |
+
enforcing compliance by third parties with this License, but You may
|
279 |
+
enforce any rights that You have over a Derivative Database. You are
|
280 |
+
solely responsible for any modifications of a Derivative Database made
|
281 |
+
by You or another Person at Your direction. You may not impose any
|
282 |
+
further restrictions on the exercise of the rights granted or affirmed
|
283 |
+
under this License.
|
284 |
+
|
285 |
+
### 5.0 Moral rights
|
286 |
+
|
287 |
+
5.1 Moral rights. This section covers moral rights, including any rights
|
288 |
+
to be identified as the author of the Database or to object to treatment
|
289 |
+
that would otherwise prejudice the author's honour and reputation, or
|
290 |
+
any other derogatory treatment:
|
291 |
+
|
292 |
+
a. For jurisdictions allowing waiver of moral rights, Licensor waives
|
293 |
+
all moral rights that Licensor may have in the Database to the fullest
|
294 |
+
extent possible by the law of the relevant jurisdiction under Section
|
295 |
+
10.4;
|
296 |
+
|
297 |
+
b. If waiver of moral rights under Section 5.1 a in the relevant
|
298 |
+
jurisdiction is not possible, Licensor agrees not to assert any moral
|
299 |
+
rights over the Database and waives all claims in moral rights to the
|
300 |
+
fullest extent possible by the law of the relevant jurisdiction under
|
301 |
+
Section 10.4; and
|
302 |
+
|
303 |
+
c. For jurisdictions not allowing waiver or an agreement not to assert
|
304 |
+
moral rights under Section 5.1 a and b, the author may retain their
|
305 |
+
moral rights over certain aspects of the Database.
|
306 |
+
|
307 |
+
Please note that some jurisdictions do not allow for the waiver of moral
|
308 |
+
rights, and so moral rights may still subsist over the Database in some
|
309 |
+
jurisdictions.
|
310 |
+
|
311 |
+
### 6.0 Fair dealing, Database exceptions, and other rights not affected
|
312 |
+
|
313 |
+
6.1 This License does not affect any rights that You or anyone else may
|
314 |
+
independently have under any applicable law to make any use of this
|
315 |
+
Database, including without limitation:
|
316 |
+
|
317 |
+
a. Exceptions to the Database Right including: Extraction of Contents
|
318 |
+
from non-electronic Databases for private purposes, Extraction for
|
319 |
+
purposes of illustration for teaching or scientific research, and
|
320 |
+
Extraction or Re-utilisation for public security or an administrative
|
321 |
+
or judicial procedure.
|
322 |
+
|
323 |
+
b. Fair dealing, fair use, or any other legally recognised limitation
|
324 |
+
or exception to infringement of copyright or other applicable laws.
|
325 |
+
|
326 |
+
6.2 This License does not affect any rights of lawful users to Extract
|
327 |
+
and Re-utilise insubstantial parts of the Contents, evaluated
|
328 |
+
quantitatively or qualitatively, for any purposes whatsoever, including
|
329 |
+
creating a Derivative Database (subject to other rights over the
|
330 |
+
Contents, see Section 2.4). The repeated and systematic Extraction or
|
331 |
+
Re-utilisation of insubstantial parts of the Contents may however amount
|
332 |
+
to the Extraction or Re-utilisation of a Substantial part of the
|
333 |
+
Contents.
|
334 |
+
|
335 |
+
### 7.0 Warranties and Disclaimer
|
336 |
+
|
337 |
+
7.1 The Database is licensed by the Licensor "as is" and without any
|
338 |
+
warranty of any kind, either express, implied, or arising by statute,
|
339 |
+
custom, course of dealing, or trade usage. Licensor specifically
|
340 |
+
disclaims any and all implied warranties or conditions of title,
|
341 |
+
non-infringement, accuracy or completeness, the presence or absence of
|
342 |
+
errors, fitness for a particular purpose, merchantability, or otherwise.
|
343 |
+
Some jurisdictions do not allow the exclusion of implied warranties, so
|
344 |
+
this exclusion may not apply to You.
|
345 |
+
|
346 |
+
### 8.0 Limitation of liability
|
347 |
+
|
348 |
+
8.1 Subject to any liability that may not be excluded or limited by law,
|
349 |
+
the Licensor is not liable for, and expressly excludes, all liability
|
350 |
+
for loss or damage however and whenever caused to anyone by any use
|
351 |
+
under this License, whether by You or by anyone else, and whether caused
|
352 |
+
by any fault on the part of the Licensor or not. This exclusion of
|
353 |
+
liability includes, but is not limited to, any special, incidental,
|
354 |
+
consequential, punitive, or exemplary damages such as loss of revenue,
|
355 |
+
data, anticipated profits, and lost business. This exclusion applies
|
356 |
+
even if the Licensor has been advised of the possibility of such
|
357 |
+
damages.
|
358 |
+
|
359 |
+
8.2 If liability may not be excluded by law, it is limited to actual and
|
360 |
+
direct financial loss to the extent it is caused by proved negligence on
|
361 |
+
the part of the Licensor.
|
362 |
+
|
363 |
+
### 9.0 Termination of Your rights under this License
|
364 |
+
|
365 |
+
9.1 Any breach by You of the terms and conditions of this License
|
366 |
+
automatically terminates this License with immediate effect and without
|
367 |
+
notice to You. For the avoidance of doubt, Persons who have received the
|
368 |
+
Database, the whole or a Substantial part of the Contents, Derivative
|
369 |
+
Databases, or the Database as part of a Collective Database from You
|
370 |
+
under this License will not have their licenses terminated provided
|
371 |
+
their use is in full compliance with this License or a license granted
|
372 |
+
under Section 4.8 of this License. Sections 1, 2, 7, 8, 9 and 10 will
|
373 |
+
survive any termination of this License.
|
374 |
+
|
375 |
+
9.2 If You are not in breach of the terms of this License, the Licensor
|
376 |
+
will not terminate Your rights under it.
|
377 |
+
|
378 |
+
9.3 Unless terminated under Section 9.1, this License is granted to You
|
379 |
+
for the duration of applicable rights in the Database.
|
380 |
+
|
381 |
+
9.4 Reinstatement of rights. If you cease any breach of the terms and
|
382 |
+
conditions of this License, then your full rights under this License
|
383 |
+
will be reinstated:
|
384 |
+
|
385 |
+
a. Provisionally and subject to permanent termination until the 60th
|
386 |
+
day after cessation of breach;
|
387 |
+
|
388 |
+
b. Permanently on the 60th day after cessation of breach unless
|
389 |
+
otherwise reasonably notified by the Licensor; or
|
390 |
+
|
391 |
+
c. Permanently if reasonably notified by the Licensor of the
|
392 |
+
violation, this is the first time You have received notice of
|
393 |
+
violation of this License from the Licensor, and You cure the
|
394 |
+
violation prior to 30 days after your receipt of the notice.
|
395 |
+
|
396 |
+
9.5 Notwithstanding the above, Licensor reserves the right to release
|
397 |
+
the Database under different license terms or to stop distributing or
|
398 |
+
making available the Database. Releasing the Database under different
|
399 |
+
license terms or stopping the distribution of the Database will not
|
400 |
+
withdraw this License (or any other license that has been, or is
|
401 |
+
required to be, granted under the terms of this License), and this
|
402 |
+
License will continue in full force and effect unless terminated as
|
403 |
+
stated above.
|
404 |
+
|
405 |
+
### 10.0 General
|
406 |
+
|
407 |
+
10.1 If any provision of this License is held to be invalid or
|
408 |
+
unenforceable, that must not affect the validity or enforceability of
|
409 |
+
the remainder of the terms and conditions of this License and each
|
410 |
+
remaining provision of this License shall be valid and enforced to the
|
411 |
+
fullest extent permitted by law.
|
412 |
+
|
413 |
+
10.2 This License is the entire agreement between the parties with
|
414 |
+
respect to the rights granted here over the Database. It replaces any
|
415 |
+
earlier understandings, agreements or representations with respect to
|
416 |
+
the Database.
|
417 |
+
|
418 |
+
10.3 If You are in breach of the terms of this License, You will not be
|
419 |
+
entitled to rely on the terms of this License or to complain of any
|
420 |
+
breach by the Licensor.
|
421 |
+
|
422 |
+
10.4 Choice of law. This License takes effect in and will be governed by
|
423 |
+
the laws of the relevant jurisdiction in which the License terms are
|
424 |
+
sought to be enforced. If the standard suite of rights granted under
|
425 |
+
applicable copyright law and Database Rights in the relevant
|
426 |
+
jurisdiction includes additional rights not granted under this License,
|
427 |
+
these additional rights are granted in this License in order to meet the
|
428 |
+
terms of this License.
|
README.md
ADDED
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: odc-by
|
3 |
+
viewer: false
|
4 |
+
task_categories:
|
5 |
+
- text-generation
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
tags:
|
9 |
+
- language-modeling
|
10 |
+
- casual-lm
|
11 |
+
- llm
|
12 |
+
pretty_name: Dolma
|
13 |
+
size_categories:
|
14 |
+
- n>1T
|
15 |
+
---
|
16 |
+
|
17 |
+
# Dolma
|
18 |
+
|
19 |
+
<img alt="Dolma's official logo. It's dolma written in yellow, round lowercase letters over a blue background." src="https://raw.githubusercontent.com/allenai/dolma/main/docs/assets/AI2_Blog_1400x685_2x.webp" width="100%">
|
20 |
+
|
21 |
+
Dolma is a dataset of 3 trillion tokens from a diverse mix of web content, academic publications, code, books, and encyclopedic materials.
|
22 |
+
|
23 |
+
More information:
|
24 |
+
|
25 |
+
- Read Dolma **manuscript** and its **Data Sheet** [on ArXiv](https://arxiv.org/abs/2402.00159);
|
26 |
+
- Explore the [**open source tools**](https://github.com/allenai/dolma) we created to curate Dolma.
|
27 |
+
- Want to request removal of personal data? Use [this form](https://forms.gle/q4BNUUxUxKwKkfdT6) to notify us of documents containing PII about a specific user.
|
28 |
+
|
29 |
+
To learn more about the toolkit used to create Dolma, including how to replicate this dataset, head over our [GitHub project page](https://github.com/allenai/dolma/tree/main/docs)!
|
30 |
+
|
31 |
+
**2024-04-17: Dolma v1.7 Release.** We have released an updated version of Dolma that we used to train our latest [OLMo 7B-v1.7](https://huggingface.co/allenai/OLMo-7b-v1.7) model.
|
32 |
+
|
33 |
+
**2024-04-15: License Change.** We have updated the license of Dolma to [ODC-BY](https://opendatacommons.org/licenses/by/1-0/). Please see this [blog post](https://blog.allenai.org/making-a-switch-dolma-moves-to-odc-by-8f0e73852f44) for more information.
|
34 |
+
|
35 |
+
|
36 |
+
## Versions
|
37 |
+
|
38 |
+
At the moment, there are six versions of Dolma available:
|
39 |
+
|
40 |
+
| **Version** | **Default?** | **Release Date** | **Size** (gzip) | **Description** |
|
41 |
+
|--|:--:|--|--|--|
|
42 |
+
| `v1_7` | ✅ | 2024-04-15 | 4.5 TB | Used to train [OLMo-7B-v1.7](https://huggingface.co/allenai/OLMo-7b-v1.7). New sources, more quality filtering, fuzzy deduplication. |
|
43 |
+
| `v1_6` | | 2024-01-31 | 5.4 TB | An update to v1.5 with some deduplication of documents with too few tokens or too many repeated n-grams. |
|
44 |
+
| `v1_6-sample` | | 2024-01-31 | 16.4 GB | A smaller sample of Dolma, with roughly 10 billion tokens. Useful for data exploration. |
|
45 |
+
| `v1_5` | | 2023-10-31 | 6.4 TB | Used to train [OLMo-1B](https://huggingface.co/allenai/OLMo-1B). Roughly 3 trillion tokens. |
|
46 |
+
| `v1_5-sample` | | 2023-10-31 | 2.9 TB | A sample of roughly 1.9 trillion tokens used to train [OLMo-7B](https://huggingface.co/allenai/OLMo-7B) |
|
47 |
+
| `v1` | | 2023-08-18 | 6.0 TB | The first version of Dolma. |
|
48 |
+
|
49 |
+
|
50 |
+
## Summary Statistics (v1.7)
|
51 |
+
|
52 |
+
| **Source** | **Provenance** | **New?** | **Documents** (millions) | **OLMo tokens** (billions) | **Sample Proportion** | **Cutoff Date** | **Processing**
|
53 |
+
|--|--|--|--|--|--|--|--|
|
54 |
+
| Dolma's CC | [Common Crawl](https://commoncrawl.org/) via Dolma v1.6 | Updated | 875.2 | 1,195.5 | 50% | Mar 2023 | Extracted using the Dolma pipeline; new quality filtering and deduplication steps. |
|
55 |
+
| Refined Web | [Refined Web](https://huggingface.co/datasets/tiiuae/falcon-refinedweb) | Yes | 664.0 | 456.4 | 100% | Feb 2023 | Filtered using the Dolma pipeline; new quality filtering and deduplication steps. |
|
56 |
+
| StarCoder | [StarCoder](https://huggingface.co/blog/starcoder) | Yes | 206.6 | 263.8 | 100% | May 2023 | No further processing. |
|
57 |
+
| C4 | [C4](https://huggingface.co/datasets/c4) via Dolma v1.6 | Updated | 249.9 | 138.4 | 50% | Apr 2019 | Filtered using the Dolma pipeline; new quality filtering and deduplication steps. |
|
58 |
+
| Reddit | [PushShift API](https://github.com/pushshift/api) | Updated | 377.4 | 79.9 | 100% | Mar 2023 | Extracted using the Dolma pipeline; new quality filtering and deduplication steps. |
|
59 |
+
| Semantic Scholar ([S2ORC](https://aclanthology.org/2020.acl-main.447/) & [S2AG](https://www.semanticscholar.org/product/api)) | [peS2o](https://huggingface.co/datasets/allenai/peS2o) via Dolma v1.6 | No | 38.8 | 57.2 | 100% | Mar 2023 | Same as Dolma v1.6 |
|
60 |
+
| arXiv | [RedPajama v1](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) | Yes | 1.5 | 28.0 | 100% | Mar 2023 | No further processing. |
|
61 |
+
| StackExchange | [RedPajama v1](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) | Yes | 29.3 | 19.6 | 100% | Mar 2023 | No further processing. |
|
62 |
+
| Flan | [Flan Collection](https://arxiv.org/abs/2301.13688), reproduced following the [original code](https://github.com/google-research/FLAN/tree/main/flan/v2), as performed by [Dettmers et al., (2023)](https://openreview.net/forum?id=OUIFPHEgJU) | Yes | 52.1 | 16.5 | 100% | Feb 2023 | After reproducing Flan, sampled to balance different Flan subsets. Reformatted for pretraining with newlines separating instruction and demonstration. |
|
63 |
+
| CC News | [Common Crawl](https://commoncrawl.org/blog/news-dataset-available) | Yes | 22.0 | 14.3 | 100% | Mar 2023 | Extracted using the Dolma pipeline; new quality filtering and deduplication steps. |
|
64 |
+
| OpenWebMath | [OpenWebMath](https://huggingface.co/datasets/open-web-math/open-web-math) via [Proof Pile II](https://huggingface.co/datasets/EleutherAI/proof-pile-2) | Yes | 2.9 | 12.6 | 100% | May 2023 | Training subset; no further processing. |
|
65 |
+
| Algebraic Stack | [Proof Pile II](https://huggingface.co/datasets/EleutherAI/proof-pile-2) | Yes | 2.8 | 12.6 | 100% | Oct 2023 | Training subset; no further processing. |
|
66 |
+
| Project Gutenberg | [Project Gutenberg](https://www.gutenberg.org) via Dolma v1.6 | No | 0.0556 | 5.3 | 100% | Mar 2023 | Same as Dolma v1.6 |
|
67 |
+
| MegaWika | [MetaWika](https://huggingface.co/datasets/hltcoe/megawika) | Yes | 3.2 | 4.6 | 100% | Jul 2023 | English web pages cited from Wikipedia; curated using the full Dolma pipeline. |
|
68 |
+
| Wikipedia & Wikibooks | [Wikimedia](https://dumps.wikimedia.org) via Dolma v1.6 | No | 6.2 | 3.7 | 200% | Mar 2023 | Same as Dolma v1.6 |
|
69 |
+
| **Total** | | | **2532.0** | **2,308.5** | **1,715.1** | **Oct 2023** | |
|
70 |
+
|
71 |
+
(A subset of total data was used for training of OLMo 7B-v1.7. The token counts are based on the full dataset, whereas taking into account sampling proportion gives the final actual token counts used for training --- 1.715 trillion tokens.)
|
72 |
+
|
73 |
+
|
74 |
+
## Summary Statistics (v1.6)
|
75 |
+
|
76 |
+
| **Source** | **Doc Type** | **UTF-8 bytes** (GB) | **Documents** (millions) | **Unicode words** (billions) | **Llama tokens** (billions) |
|
77 |
+
|--|--|--|--|--|--|
|
78 |
+
| Common Crawl | web pages | 9,022 | 3,370 | 1,775 | 2,281 |
|
79 |
+
| The Stack | code| 1,043| 210 | 260| 411 |
|
80 |
+
| C4 | web pages | 790 | 364 | 153| 198 |
|
81 |
+
| Reddit| social media| 339 | 377| 72| 89 |
|
82 |
+
| PeS2o | STEM papers| 268 | 38.8| 50| 70 |
|
83 |
+
| Project Gutenberg | books | 20.4 | 0.056 | 4.0 | 6.0 |
|
84 |
+
| Wikipedia, Wikibooks | encyclopedic | 16.2 | 6.2 | 3.7 | 4.3 |
|
85 |
+
| **Total** | | **11,519** | **4,367** | **2,318** | **3,059** |
|
86 |
+
|
87 |
+
|
88 |
+
## Download
|
89 |
+
|
90 |
+
The fastest way to download Dolma is to clone this repository and use the files in the `url` directory.
|
91 |
+
We recommend using wget in parallel mode to download the files. For example:
|
92 |
+
|
93 |
+
```bash
|
94 |
+
DATA_DIR="<path_to_your_data_directory>"
|
95 |
+
PARALLEL_DOWNLOADS="<number_of_parallel_downloads>"
|
96 |
+
DOLMA_VERSION="<version_of_dolma_to_download>"
|
97 |
+
|
98 |
+
git clone https://huggingface.co/datasets/allenai/dolma
|
99 |
+
mkdir -p "${DATA_DIR}"
|
100 |
+
|
101 |
+
|
102 |
+
cat "dolma/urls/${DOLMA_VERSION}.txt" | xargs -n 1 -P "${PARALLEL_DOWNLOADS}" wget -q -P "$DATA_DIR"
|
103 |
+
```
|
104 |
+
|
105 |
+
Then, to load this data using HuggingFace's `datasets` library, you can use the following code:
|
106 |
+
|
107 |
+
```python
|
108 |
+
import os
|
109 |
+
from datasets import load_dataset
|
110 |
+
|
111 |
+
os.environ["DATA_DIR"] = "<path_to_your_data_directory>"
|
112 |
+
dataset = load_dataset("allenai/dolma", split="train")
|
113 |
+
```
|
114 |
+
|
115 |
+
### Licensing Information
|
116 |
+
|
117 |
+
We are releasing this dataset under the terms of [ODC-BY](https://opendatacommons.org/licenses/by/1-0/).
|
118 |
+
By using this dataset, you are also bound any license agreements and terms of use of the original data sources.
|
119 |
+
|
120 |
+
## Bibtex
|
121 |
+
|
122 |
+
If you use our dataset or tooling, please cite us at:
|
123 |
+
|
124 |
+
```bibtex
|
125 |
+
@article{dolma,
|
126 |
+
title = {{Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research}},
|
127 |
+
author={
|
128 |
+
Luca Soldaini and Rodney Kinney and Akshita Bhagia and Dustin Schwenk and David Atkinson and
|
129 |
+
Russell Authur and Ben Bogin and Khyathi Chandu and Jennifer Dumas and Yanai Elazar and
|
130 |
+
Valentin Hofmann and Ananya Harsh Jha and Sachin Kumar and Li Lucy and Xinxi Lyu and
|
131 |
+
Nathan Lambert and Ian Magnusson and Jacob Morrison and Niklas Muennighoff and Aakanksha Naik and
|
132 |
+
Crystal Nam and Matthew E. Peters and Abhilasha Ravichander and Kyle Richardson and Zejiang Shen and
|
133 |
+
Emma Strubell and Nishant Subramani and Oyvind Tafjord and Pete Walsh and Luke Zettlemoyer and
|
134 |
+
Noah A. Smith and Hannaneh Hajishirzi and Iz Beltagy and Dirk Groeneveld and Jesse Dodge and Kyle Lo
|
135 |
+
},
|
136 |
+
year = {2024},
|
137 |
+
journal={arXiv preprint},
|
138 |
+
}
|
139 |
+
```
|
dolma-v1_6-sample.py
ADDED
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright 2024 Allen Institute for AI
|
2 |
+
#
|
3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
+
# you may not use this file except in compliance with the License.
|
5 |
+
# You may obtain a copy of the License at
|
6 |
+
#
|
7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
+
#
|
9 |
+
# Unless required by applicable law or agreed to in writing, software
|
10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
+
# See the License for the specific language governing permissions and
|
13 |
+
# limitations under the License.
|
14 |
+
|
15 |
+
# Lint as: python3
|
16 |
+
"""Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research"""
|
17 |
+
|
18 |
+
import gzip
|
19 |
+
import json
|
20 |
+
import os
|
21 |
+
from typing import List
|
22 |
+
|
23 |
+
import datasets
|
24 |
+
|
25 |
+
logger = datasets.logging.get_logger(__name__)
|
26 |
+
|
27 |
+
|
28 |
+
_DESCRIPTION = """\
|
29 |
+
Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research
|
30 |
+
"""
|
31 |
+
|
32 |
+
_URL_LISTS = {
|
33 |
+
"v1": "urls/v1.txt",
|
34 |
+
"v1_5": "urls/v1_5.txt",
|
35 |
+
"v1_5-sample": "urls/v1_5-sample.txt",
|
36 |
+
"v1_6": "urls/v1_6.txt",
|
37 |
+
"v1_6-sample": "urls/v1_6-sample.txt",
|
38 |
+
"v1_7": "urls/v1_7.txt",
|
39 |
+
}
|
40 |
+
_VERSIONS = {
|
41 |
+
"v1": "1.0.0",
|
42 |
+
"v1_5": "1.5.0",
|
43 |
+
"v1_5-sample": "1.5.0",
|
44 |
+
"v1_6": "1.6.0",
|
45 |
+
"v1_6-sample": "1.6.0",
|
46 |
+
"v1_7": "1.7.0",
|
47 |
+
}
|
48 |
+
_DATES = {
|
49 |
+
"v1": "(Aug 2023)",
|
50 |
+
"v1_5": "(Oct 2023)",
|
51 |
+
"v1_5-sample": "(Oct 2023)",
|
52 |
+
"v1_6": "(Jan 2024)",
|
53 |
+
"v1_6-sample": "(Jan 2024)",
|
54 |
+
"v1_7": "(Apr 2024)",
|
55 |
+
}
|
56 |
+
_BASE_URL = "https://olmo-data.org"
|
57 |
+
|
58 |
+
_DATA_DIR = os.environ.get("DOLMA_DATA_DIR", None)
|
59 |
+
|
60 |
+
_CITATION = """\
|
61 |
+
@article{dolma,
|
62 |
+
title = {{Dolma: An Open Corpus of Three Trillion Tokens for Language Model Pretraining Research}},
|
63 |
+
author = {
|
64 |
+
Luca Soldaini and Rodney Kinney and Akshita Bhagia and Dustin Schwenk and David Atkinson and
|
65 |
+
Russell Authur and Ben Bogin and Khyathi Chandu and Jennifer Dumas and Yanai Elazar and
|
66 |
+
Valentin Hofmann and Ananya Harsh Jha and Sachin Kumar and Li Lucy and Xinxi Lyu and Ian Magnusson and
|
67 |
+
Jacob Morrison and Niklas Muennighoff and Aakanksha Naik and Crystal Nam and Matthew E. Peters and
|
68 |
+
Abhilasha Ravichander and Kyle Richardson and Zejiang Shen and Emma Strubell and Nishant Subramani and
|
69 |
+
Oyvind Tafjord and Evan Pete Walsh and Hannaneh Hajishirzi and Noah A. Smith and Luke Zettlemoyer and
|
70 |
+
Iz Beltagy and Dirk Groeneveld and Jesse Dodge and Kyle Lo
|
71 |
+
},
|
72 |
+
year = {2024},
|
73 |
+
journal={arXiv preprint},
|
74 |
+
}
|
75 |
+
"""
|
76 |
+
|
77 |
+
|
78 |
+
class Dolma(datasets.GeneratorBasedBuilder):
|
79 |
+
"""Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research"""
|
80 |
+
|
81 |
+
BUILDER_CONFIGS = [
|
82 |
+
datasets.BuilderConfig(
|
83 |
+
name=name,
|
84 |
+
version=_VERSIONS[name],
|
85 |
+
description=f"{_DESCRIPTION} {_DATES[name]}",
|
86 |
+
)
|
87 |
+
for name in _URL_LISTS.keys()
|
88 |
+
]
|
89 |
+
|
90 |
+
DEFAULT_CONFIG_NAME = "v1_6-sample"
|
91 |
+
|
92 |
+
def _info(self):
|
93 |
+
return datasets.DatasetInfo(
|
94 |
+
description=_DESCRIPTION,
|
95 |
+
features=datasets.Features(
|
96 |
+
{
|
97 |
+
"id": datasets.Value("string"),
|
98 |
+
"text": datasets.Value("string"),
|
99 |
+
# "metadata": datasets.Value("string"),
|
100 |
+
"added": datasets.Value("string"),
|
101 |
+
"created": datasets.Value("string"),
|
102 |
+
"source": datasets.Value("string"),
|
103 |
+
}
|
104 |
+
),
|
105 |
+
supervised_keys=None,
|
106 |
+
)
|
107 |
+
|
108 |
+
def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
|
109 |
+
path = dl_manager.download(_URL_LISTS[self.config.name])
|
110 |
+
|
111 |
+
with open(path, mode="rt", encoding="utf-8") as f: # type: ignore[no-untyped-call]
|
112 |
+
subset_urls = f.read().splitlines()
|
113 |
+
|
114 |
+
if _DATA_DIR is not None:
|
115 |
+
subset_files = [os.path.join(_DATA_DIR, url.replace(_BASE_URL, "").lstrip("/")) for url in subset_urls]
|
116 |
+
else:
|
117 |
+
subset_files = dl_manager.download(subset_urls)
|
118 |
+
|
119 |
+
return [
|
120 |
+
datasets.SplitGenerator(
|
121 |
+
name=datasets.Split.TRAIN, # type: ignore[assignment]
|
122 |
+
gen_kwargs={"files": subset_files},
|
123 |
+
)
|
124 |
+
]
|
125 |
+
|
126 |
+
def _generate_examples(self, files: List[str]):
|
127 |
+
"""This function returns the examples in the raw (text) form."""
|
128 |
+
for fn in files:
|
129 |
+
logger.info("generating examples from = %s", fn)
|
130 |
+
|
131 |
+
with gzip.open(fn, mode="rt", encoding="utf-8") as f:
|
132 |
+
for line in f:
|
133 |
+
row = json.loads(line)
|
134 |
+
yield row["id"], {
|
135 |
+
"id": row["id"],
|
136 |
+
"text": row["text"],
|
137 |
+
"added": row.get("added", ""),
|
138 |
+
"created": row.get("created", ""),
|
139 |
+
"source": row.get("source", ""),
|
140 |
+
}
|
urls/v1.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
urls/v1_5-sample.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
urls/v1_5.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
urls/v1_6-sample.txt
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0000.json.gz
|
2 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0001.json.gz
|
3 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0002.json.gz
|
4 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0003.json.gz
|
5 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0004.json.gz
|
6 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0005.json.gz
|
7 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0006.json.gz
|
8 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0007.json.gz
|
9 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0008.json.gz
|
10 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0009.json.gz
|
11 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0010.json.gz
|
12 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0011.json.gz
|
13 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0012.json.gz
|
14 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0013.json.gz
|
15 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0014.json.gz
|
16 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0015.json.gz
|
17 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0016.json.gz
|
18 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0017.json.gz
|
19 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0018.json.gz
|
20 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0019.json.gz
|
21 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0020.json.gz
|
22 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0021.json.gz
|
23 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0022.json.gz
|
24 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0023.json.gz
|
25 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0024.json.gz
|
26 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0025.json.gz
|
27 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0026.json.gz
|
28 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0027.json.gz
|
29 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0028.json.gz
|
30 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0029.json.gz
|
31 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0030.json.gz
|
32 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0031.json.gz
|
33 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0032.json.gz
|
34 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0033.json.gz
|
35 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0034.json.gz
|
36 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0035.json.gz
|
37 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0036.json.gz
|
38 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0037.json.gz
|
39 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0038.json.gz
|
40 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0039.json.gz
|
41 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0040.json.gz
|
42 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0041.json.gz
|
43 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0042.json.gz
|
44 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0043.json.gz
|
45 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0044.json.gz
|
46 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0045.json.gz
|
47 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0046.json.gz
|
48 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0047.json.gz
|
49 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0048.json.gz
|
50 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0049.json.gz
|
51 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0050.json.gz
|
52 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0051.json.gz
|
53 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0052.json.gz
|
54 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0053.json.gz
|
55 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0054.json.gz
|
56 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0055.json.gz
|
57 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0056.json.gz
|
58 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0057.json.gz
|
59 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0058.json.gz
|
60 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0059.json.gz
|
61 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0060.json.gz
|
62 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0061.json.gz
|
63 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0062.json.gz
|
64 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0063.json.gz
|
65 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0064.json.gz
|
66 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0065.json.gz
|
67 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0066.json.gz
|
68 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0067.json.gz
|
69 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0068.json.gz
|
70 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0069.json.gz
|
71 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0070.json.gz
|
72 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0071.json.gz
|
73 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0072.json.gz
|
74 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0073.json.gz
|
75 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0074.json.gz
|
76 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0075.json.gz
|
77 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0076.json.gz
|
78 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0077.json.gz
|
79 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0078.json.gz
|
80 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0079.json.gz
|
81 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0080.json.gz
|
82 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0081.json.gz
|
83 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0082.json.gz
|
84 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0083.json.gz
|
85 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0084.json.gz
|
86 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0085.json.gz
|
87 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0086.json.gz
|
88 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0087.json.gz
|
89 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0088.json.gz
|
90 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0089.json.gz
|
91 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0090.json.gz
|
92 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0091.json.gz
|
93 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0092.json.gz
|
94 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0093.json.gz
|
95 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0094.json.gz
|
96 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0095.json.gz
|
97 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0096.json.gz
|
98 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0097.json.gz
|
99 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0098.json.gz
|
100 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0099.json.gz
|
101 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0100.json.gz
|
102 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0101.json.gz
|
103 |
+
https://olmo-data.org/dolma-v1_6-8B-sample/v1_5r2_sample-0102.json.gz
|
urls/v1_6.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
urls/v1_7.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|