timo-schrader commited on
Commit
760548f
1 Parent(s): 3b13e14

initial commit

Browse files
Files changed (10) hide show
  1. CHANGELOG +14 -0
  2. COPYRIGHT +14 -0
  3. LICENSE_CODE +661 -0
  4. LICENSE_CORPUS +428 -0
  5. MuLMS.py +753 -0
  6. MuLMS_Corpus_Metadata.csv +51 -0
  7. README.md +283 -0
  8. data.zip +3 -0
  9. requirements.txt +3 -0
  10. teaser.png +3 -0
CHANGELOG ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The purpose of this file is to state changes that where made to the dataset reader
2
+ and further files taken from https://github.com/boschresearch/mulms-az-codi2023.
3
+
4
+ Changes:
5
+
6
+ - The file mulms.py originates from source/data_handling/mulms_dataset.py
7
+ - The constants SENT_TYPE, MATSCI_SENT_TYPE, TOKEN_TYPE, SKIPPING_TYPE,
8
+ ENTITY_TYPE, RELATION_TYPE, PASSAGE_TYPE and DOCUMENT_METADATA_TYPE were
9
+ added to mulms.py from source/constants/constants.py
10
+ - The functions get_token_indices_for_annot(), get_token_index_for_annot_if_subtoken()
11
+ were added to mulms.py from source/data_handling/util.py
12
+ - The variables az_content_labels, az_structure_labels, meas_labels, mulms_ne_labels, rel_labels,
13
+ ne_labels_set, all_az_labels, meas_labels_set and rel_label_set were added to mulms.py
14
+ from source/constants/constants.py
COPYRIGHT ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Experiment resources related to the MuLMS corpus.
2
+ Copyright (c) 2023 Robert Bosch GmbH
3
+
4
+ This program is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU Affero General Public License as published
6
+ by the Free Software Foundation, either version 3 of the License, or
7
+ (at your option) any later version.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU Affero General Public License for more details.
13
+ You should have received a copy of the GNU Affero General Public License
14
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
LICENSE_CODE ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+
621
+ How to Apply These Terms to Your New Programs
622
+
623
+ If you develop a new program, and you want it to be of the greatest
624
+ possible use to the public, the best way to achieve this is to make it
625
+ free software which everyone can redistribute and change under these terms.
626
+
627
+ To do so, attach the following notices to the program. It is safest
628
+ to attach them to the start of each source file to most effectively
629
+ state the exclusion of warranty; and each file should have at least
630
+ the "copyright" line and a pointer to where the full notice is found.
631
+
632
+ <one line to give the program's name and a brief idea of what it does.>
633
+ Copyright (C) <year> <name of author>
634
+
635
+ This program is free software: you can redistribute it and/or modify
636
+ it under the terms of the GNU Affero General Public License as published
637
+ by the Free Software Foundation, either version 3 of the License, or
638
+ (at your option) any later version.
639
+
640
+ This program is distributed in the hope that it will be useful,
641
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
642
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
+ GNU Affero General Public License for more details.
644
+
645
+ You should have received a copy of the GNU Affero General Public License
646
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
647
+
648
+ Also add information on how to contact you by electronic and paper mail.
649
+
650
+ If your software can interact with users remotely through a computer
651
+ network, you should also make sure that it provides a way for users to
652
+ get its source. For example, if your program is a web application, its
653
+ interface could display a "Source" link that leads users to an archive
654
+ of the code. There are many ways you could offer source, and different
655
+ solutions will be better for different programs; see section 13 for the
656
+ specific requirements.
657
+
658
+ You should also get your employer (if you work as a programmer) or school,
659
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
660
+ For more information on this, and how to apply and follow the GNU AGPL, see
661
+ <https://www.gnu.org/licenses/>.
LICENSE_CORPUS ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-ShareAlike 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-ShareAlike 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-ShareAlike 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. BY-SA Compatible License means a license listed at
88
+ creativecommons.org/compatiblelicenses, approved by Creative
89
+ Commons as essentially the equivalent of this Public License.
90
+
91
+ d. Copyright and Similar Rights means copyright and/or similar rights
92
+ closely related to copyright including, without limitation,
93
+ performance, broadcast, sound recording, and Sui Generis Database
94
+ Rights, without regard to how the rights are labeled or
95
+ categorized. For purposes of this Public License, the rights
96
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
97
+ Rights.
98
+
99
+ e. Effective Technological Measures means those measures that, in the
100
+ absence of proper authority, may not be circumvented under laws
101
+ fulfilling obligations under Article 11 of the WIPO Copyright
102
+ Treaty adopted on December 20, 1996, and/or similar international
103
+ agreements.
104
+
105
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
106
+ any other exception or limitation to Copyright and Similar Rights
107
+ that applies to Your use of the Licensed Material.
108
+
109
+ g. License Elements means the license attributes listed in the name
110
+ of a Creative Commons Public License. The License Elements of this
111
+ Public License are Attribution and ShareAlike.
112
+
113
+ h. Licensed Material means the artistic or literary work, database,
114
+ or other material to which the Licensor applied this Public
115
+ License.
116
+
117
+ i. Licensed Rights means the rights granted to You subject to the
118
+ terms and conditions of this Public License, which are limited to
119
+ all Copyright and Similar Rights that apply to Your use of the
120
+ Licensed Material and that the Licensor has authority to license.
121
+
122
+ j. Licensor means the individual(s) or entity(ies) granting rights
123
+ under this Public License.
124
+
125
+ k. Share means to provide material to the public by any means or
126
+ process that requires permission under the Licensed Rights, such
127
+ as reproduction, public display, public performance, distribution,
128
+ dissemination, communication, or importation, and to make material
129
+ available to the public including in ways that members of the
130
+ public may access the material from a place and at a time
131
+ individually chosen by them.
132
+
133
+ l. Sui Generis Database Rights means rights other than copyright
134
+ resulting from Directive 96/9/EC of the European Parliament and of
135
+ the Council of 11 March 1996 on the legal protection of databases,
136
+ as amended and/or succeeded, as well as other essentially
137
+ equivalent rights anywhere in the world.
138
+
139
+ m. You means the individual or entity exercising the Licensed Rights
140
+ under this Public License. Your has a corresponding meaning.
141
+
142
+
143
+ Section 2 -- Scope.
144
+
145
+ a. License grant.
146
+
147
+ 1. Subject to the terms and conditions of this Public License,
148
+ the Licensor hereby grants You a worldwide, royalty-free,
149
+ non-sublicensable, non-exclusive, irrevocable license to
150
+ exercise the Licensed Rights in the Licensed Material to:
151
+
152
+ a. reproduce and Share the Licensed Material, in whole or
153
+ in part; and
154
+
155
+ b. produce, reproduce, and Share Adapted Material.
156
+
157
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
158
+ Exceptions and Limitations apply to Your use, this Public
159
+ License does not apply, and You do not need to comply with
160
+ its terms and conditions.
161
+
162
+ 3. Term. The term of this Public License is specified in Section
163
+ 6(a).
164
+
165
+ 4. Media and formats; technical modifications allowed. The
166
+ Licensor authorizes You to exercise the Licensed Rights in
167
+ all media and formats whether now known or hereafter created,
168
+ and to make technical modifications necessary to do so. The
169
+ Licensor waives and/or agrees not to assert any right or
170
+ authority to forbid You from making technical modifications
171
+ necessary to exercise the Licensed Rights, including
172
+ technical modifications necessary to circumvent Effective
173
+ Technological Measures. For purposes of this Public License,
174
+ simply making modifications authorized by this Section 2(a)
175
+ (4) never produces Adapted Material.
176
+
177
+ 5. Downstream recipients.
178
+
179
+ a. Offer from the Licensor -- Licensed Material. Every
180
+ recipient of the Licensed Material automatically
181
+ receives an offer from the Licensor to exercise the
182
+ Licensed Rights under the terms and conditions of this
183
+ Public License.
184
+
185
+ b. Additional offer from the Licensor -- Adapted Material.
186
+ Every recipient of Adapted Material from You
187
+ automatically receives an offer from the Licensor to
188
+ exercise the Licensed Rights in the Adapted Material
189
+ under the conditions of the Adapter's License You apply.
190
+
191
+ c. No downstream restrictions. You may not offer or impose
192
+ any additional or different terms or conditions on, or
193
+ apply any Effective Technological Measures to, the
194
+ Licensed Material if doing so restricts exercise of the
195
+ Licensed Rights by any recipient of the Licensed
196
+ Material.
197
+
198
+ 6. No endorsement. Nothing in this Public License constitutes or
199
+ may be construed as permission to assert or imply that You
200
+ are, or that Your use of the Licensed Material is, connected
201
+ with, or sponsored, endorsed, or granted official status by,
202
+ the Licensor or others designated to receive attribution as
203
+ provided in Section 3(a)(1)(A)(i).
204
+
205
+ b. Other rights.
206
+
207
+ 1. Moral rights, such as the right of integrity, are not
208
+ licensed under this Public License, nor are publicity,
209
+ privacy, and/or other similar personality rights; however, to
210
+ the extent possible, the Licensor waives and/or agrees not to
211
+ assert any such rights held by the Licensor to the limited
212
+ extent necessary to allow You to exercise the Licensed
213
+ Rights, but not otherwise.
214
+
215
+ 2. Patent and trademark rights are not licensed under this
216
+ Public License.
217
+
218
+ 3. To the extent possible, the Licensor waives any right to
219
+ collect royalties from You for the exercise of the Licensed
220
+ Rights, whether directly or through a collecting society
221
+ under any voluntary or waivable statutory or compulsory
222
+ licensing scheme. In all other cases the Licensor expressly
223
+ reserves any right to collect such royalties.
224
+
225
+
226
+ Section 3 -- License Conditions.
227
+
228
+ Your exercise of the Licensed Rights is expressly made subject to the
229
+ following conditions.
230
+
231
+ a. Attribution.
232
+
233
+ 1. If You Share the Licensed Material (including in modified
234
+ form), You must:
235
+
236
+ a. retain the following if it is supplied by the Licensor
237
+ with the Licensed Material:
238
+
239
+ i. identification of the creator(s) of the Licensed
240
+ Material and any others designated to receive
241
+ attribution, in any reasonable manner requested by
242
+ the Licensor (including by pseudonym if
243
+ designated);
244
+
245
+ ii. a copyright notice;
246
+
247
+ iii. a notice that refers to this Public License;
248
+
249
+ iv. a notice that refers to the disclaimer of
250
+ warranties;
251
+
252
+ v. a URI or hyperlink to the Licensed Material to the
253
+ extent reasonably practicable;
254
+
255
+ b. indicate if You modified the Licensed Material and
256
+ retain an indication of any previous modifications; and
257
+
258
+ c. indicate the Licensed Material is licensed under this
259
+ Public License, and include the text of, or the URI or
260
+ hyperlink to, this Public License.
261
+
262
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
263
+ reasonable manner based on the medium, means, and context in
264
+ which You Share the Licensed Material. For example, it may be
265
+ reasonable to satisfy the conditions by providing a URI or
266
+ hyperlink to a resource that includes the required
267
+ information.
268
+
269
+ 3. If requested by the Licensor, You must remove any of the
270
+ information required by Section 3(a)(1)(A) to the extent
271
+ reasonably practicable.
272
+
273
+ b. ShareAlike.
274
+
275
+ In addition to the conditions in Section 3(a), if You Share
276
+ Adapted Material You produce, the following conditions also apply.
277
+
278
+ 1. The Adapter's License You apply must be a Creative Commons
279
+ license with the same License Elements, this version or
280
+ later, or a BY-SA Compatible License.
281
+
282
+ 2. You must include the text of, or the URI or hyperlink to, the
283
+ Adapter's License You apply. You may satisfy this condition
284
+ in any reasonable manner based on the medium, means, and
285
+ context in which You Share Adapted Material.
286
+
287
+ 3. You may not offer or impose any additional or different terms
288
+ or conditions on, or apply any Effective Technological
289
+ Measures to, Adapted Material that restrict exercise of the
290
+ rights granted under the Adapter's License You apply.
291
+
292
+
293
+ Section 4 -- Sui Generis Database Rights.
294
+
295
+ Where the Licensed Rights include Sui Generis Database Rights that
296
+ apply to Your use of the Licensed Material:
297
+
298
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
299
+ to extract, reuse, reproduce, and Share all or a substantial
300
+ portion of the contents of the database;
301
+
302
+ b. if You include all or a substantial portion of the database
303
+ contents in a database in which You have Sui Generis Database
304
+ Rights, then the database in which You have Sui Generis Database
305
+ Rights (but not its individual contents) is Adapted Material,
306
+ including for purposes of Section 3(b); and
307
+
308
+ c. You must comply with the conditions in Section 3(a) if You Share
309
+ all or a substantial portion of the contents of the database.
310
+
311
+ For the avoidance of doubt, this Section 4 supplements and does not
312
+ replace Your obligations under this Public License where the Licensed
313
+ Rights include other Copyright and Similar Rights.
314
+
315
+
316
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
317
+
318
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
319
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
320
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
321
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
322
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
323
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
324
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
325
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
326
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
327
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
328
+
329
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
330
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
331
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
332
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
333
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
334
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
335
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
336
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
337
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
338
+
339
+ c. The disclaimer of warranties and limitation of liability provided
340
+ above shall be interpreted in a manner that, to the extent
341
+ possible, most closely approximates an absolute disclaimer and
342
+ waiver of all liability.
343
+
344
+
345
+ Section 6 -- Term and Termination.
346
+
347
+ a. This Public License applies for the term of the Copyright and
348
+ Similar Rights licensed here. However, if You fail to comply with
349
+ this Public License, then Your rights under this Public License
350
+ terminate automatically.
351
+
352
+ b. Where Your right to use the Licensed Material has terminated under
353
+ Section 6(a), it reinstates:
354
+
355
+ 1. automatically as of the date the violation is cured, provided
356
+ it is cured within 30 days of Your discovery of the
357
+ violation; or
358
+
359
+ 2. upon express reinstatement by the Licensor.
360
+
361
+ For the avoidance of doubt, this Section 6(b) does not affect any
362
+ right the Licensor may have to seek remedies for Your violations
363
+ of this Public License.
364
+
365
+ c. For the avoidance of doubt, the Licensor may also offer the
366
+ Licensed Material under separate terms or conditions or stop
367
+ distributing the Licensed Material at any time; however, doing so
368
+ will not terminate this Public License.
369
+
370
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
371
+ License.
372
+
373
+
374
+ Section 7 -- Other Terms and Conditions.
375
+
376
+ a. The Licensor shall not be bound by any additional or different
377
+ terms or conditions communicated by You unless expressly agreed.
378
+
379
+ b. Any arrangements, understandings, or agreements regarding the
380
+ Licensed Material not stated herein are separate from and
381
+ independent of the terms and conditions of this Public License.
382
+
383
+
384
+ Section 8 -- Interpretation.
385
+
386
+ a. For the avoidance of doubt, this Public License does not, and
387
+ shall not be interpreted to, reduce, limit, restrict, or impose
388
+ conditions on any use of the Licensed Material that could lawfully
389
+ be made without permission under this Public License.
390
+
391
+ b. To the extent possible, if any provision of this Public License is
392
+ deemed unenforceable, it shall be automatically reformed to the
393
+ minimum extent necessary to make it enforceable. If the provision
394
+ cannot be reformed, it shall be severed from this Public License
395
+ without affecting the enforceability of the remaining terms and
396
+ conditions.
397
+
398
+ c. No term or condition of this Public License will be waived and no
399
+ failure to comply consented to unless expressly agreed to by the
400
+ Licensor.
401
+
402
+ d. Nothing in this Public License constitutes or may be interpreted
403
+ as a limitation upon, or waiver of, any privileges and immunities
404
+ that apply to the Licensor or You, including from the legal
405
+ processes of any jurisdiction or authority.
406
+
407
+
408
+ =======================================================================
409
+
410
+ Creative Commons is not a party to its public
411
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
412
+ its public licenses to material it publishes and in those instances
413
+ will be considered the “Licensor.” The text of the Creative Commons
414
+ public licenses is dedicated to the public domain under the CC0 Public
415
+ Domain Dedication. Except for the limited purpose of indicating that
416
+ material is shared under a Creative Commons public license or as
417
+ otherwise permitted by the Creative Commons policies published at
418
+ creativecommons.org/policies, Creative Commons does not authorize the
419
+ use of the trademark "Creative Commons" or any other trademark or logo
420
+ of Creative Commons without its prior written consent including,
421
+ without limitation, in connection with any unauthorized modifications
422
+ to any of its public licenses or any other arrangements,
423
+ understandings, or agreements concerning use of licensed material. For
424
+ the avoidance of doubt, this paragraph does not form part of the
425
+ public licenses.
426
+
427
+ Creative Commons may be contacted at creativecommons.org.
428
+
MuLMS.py ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Experiment resources related to the MuLMS corpus.
2
+ # Copyright (c) 2023 Robert Bosch GmbH
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU Affero General Public License as published
6
+ # by the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU Affero General Public License for more details.
13
+ # You should have received a copy of the GNU Affero General Public License
14
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
15
+
16
+ # 24 October 2023 - Modified by Timo Schrader (find all changes in CHANGELOG)
17
+
18
+ """
19
+ This module contains the HuggingFace dataset reader for the "Multi-Layer Materials Science Corpus (MuLMS)"
20
+ """
21
+
22
+ from dataclasses import dataclass
23
+ from os import listdir
24
+ from os.path import exists, join
25
+
26
+ import datasets
27
+ import pandas as pd
28
+ from datasets.utils.download_manager import DownloadManager
29
+ from puima.collection_utils import DocumentCollection
30
+
31
+ SENT_TYPE = "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Sentence"
32
+ MATSCI_SENT_TYPE = "webanno.custom.MatSci_Sentence"
33
+ TOKEN_TYPE = "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token"
34
+ SKIPPING_TYPE = "webanno.custom.MatSci_Skipping"
35
+ ENTITY_TYPE = "webanno.custom.MatSci_Entity"
36
+ RELATION_TYPE = "webanno.custom.MatSci_Relations"
37
+ PASSAGE_TYPE = "webanno.custom.MatSci_Passage"
38
+ DOCUMENT_METADATA_TYPE = "de.tudarmstadt.ukp.dkpro.core.api.metadata.type.DocumentMetaData"
39
+
40
+
41
+ def get_token_indices_for_annot(annot, sent_tokens, doc):
42
+ """
43
+ Retrieves indices of tokens within the list of sententence tokens (sent_tokens) for
44
+ the annotation annot.
45
+ param: annot - puima Annotation object
46
+ param: sent_tokens - list of puima Annotation objects (tokens of the sentence)
47
+ """
48
+ indices = [None, None]
49
+ for annot_token in doc.select_covered(TOKEN_TYPE, annot): # noqa: F405
50
+ token_index = sent_tokens.index(annot_token)
51
+ if indices[0] is None or indices[0] > token_index:
52
+ indices[0] = token_index
53
+ if indices[1] is None or indices[1] < token_index:
54
+ indices[1] = token_index
55
+ return tuple(indices)
56
+
57
+
58
+ def get_token_index_for_annot_if_subtoken(annot, sent_tokens, doc):
59
+ """
60
+ Retrieves indices of tokens within the list of sententence tokens (sent_tokens) for
61
+ the annotation annot.
62
+ param: annot - puima Annotation object
63
+ param: sent_tokens - list of puima Annotation objects (tokens of the sentence)
64
+ """
65
+ annot_token = next(doc.select_covering(TOKEN_TYPE, annot)) # noqa: F405
66
+ token_index = sent_tokens.index(annot_token)
67
+ return (token_index, token_index)
68
+
69
+
70
+ az_content_labels: list = [
71
+ "Experiment",
72
+ "Results",
73
+ "Exp_Preparation",
74
+ "Exp_Characterization",
75
+ "Background_PriorWork",
76
+ "Explanation",
77
+ "Conclusion",
78
+ "Motivation",
79
+ "Background",
80
+ ]
81
+ az_structure_labels: list = ["Metadata", "Caption", "Heading", "Abstract"]
82
+
83
+ meas_labels: list = ["MEASUREMENT", "QUAL_MEASUREMENT", "O"]
84
+
85
+ mulms_ne_labels: list = [
86
+ "MAT",
87
+ "NUM",
88
+ "VALUE",
89
+ "UNIT",
90
+ "PROPERTY",
91
+ "CITE",
92
+ "TECHNIQUE",
93
+ "RANGE",
94
+ "INSTRUMENT",
95
+ "SAMPLE",
96
+ "FORM",
97
+ "DEV",
98
+ "MEASUREMENT",
99
+ ]
100
+
101
+ rel_labels: list = [
102
+ "hasForm",
103
+ "measuresProperty",
104
+ "usedAs",
105
+ "conditionProperty",
106
+ "conditionSampleFeatures",
107
+ "usesTechnique",
108
+ "conditionEnvironment",
109
+ "propertyValue",
110
+ "usedIn",
111
+ "conditionInstrument",
112
+ "dopedBy",
113
+ "takenFrom",
114
+ "usedTogether",
115
+ ]
116
+
117
+ ne_labels_set = set(mulms_ne_labels)
118
+ all_az_labels = set(az_content_labels) | set(az_structure_labels)
119
+ meas_labels_set = set(meas_labels)
120
+ rel_label_set: set = set(rel_labels)
121
+
122
+ _CITATION = """\
123
+ @InProceedings{schrader-etal-2023-mulms,
124
+ title = {MuLMS-AZ: An Argumentative Zoning Dataset for the Materials Science Domain},
125
+ author={Timo Pierre Schrader, Teresa Bürkle, Sophie Henning, Sherry Tan, Matteo Finco, Stefan Grünewald, Maira Indrikova, Felix Hildebrand, Annemarie Friedrich
126
+ },
127
+ year={2023}
128
+ },
129
+ @InProceedings{schrader-etal-2023-mulms,
130
+ title = {MuLMS: A Multi-Layer Annotated Text Corpus for Information Extraction in the Materials Science Domain},
131
+ author={Timo Pierre Schrader, Matteo Finco, Stefan Grünewald, Felix Hildebrand, Annemarie Friedrich
132
+ },
133
+ year={2023}
134
+ }
135
+ """
136
+
137
+ _DESCRIPTION = """\
138
+ This dataset represents the Multi-Layer Material Science (MuLMS) corpus.
139
+ It consists of 50 thoroughly annotated documents from the materials science domain and
140
+ provides annotations for named entities, argumentative zoning (AZ), relation extraction,
141
+ measurement classification and citation context retrieval. Please refer to our papers for
142
+ more details about the MuLMS corpus.
143
+ """
144
+
145
+ _HOMEPAGE = "https://github.com/boschresearch/mulms-az-codi2023"
146
+
147
+ _LICENSE = "AGPL-3"
148
+
149
+ _URLS = "data.zip" # "Path to MuLMS-AZ files"
150
+
151
+
152
+ @dataclass
153
+ class MuLMSDatasetBuilderConfig(datasets.BuilderConfig):
154
+ """
155
+ Config class for the dataset class.
156
+ """
157
+
158
+ replace_heading_AZ_labels: bool = True
159
+ remove_figure_and_table_labels: bool = True
160
+
161
+
162
+ class MuLMSDataset(datasets.GeneratorBasedBuilder):
163
+ """This dataset represents the Multi-Layer Material Science Corpus with 50 documents across multiple domains."""
164
+
165
+ VERSION = datasets.Version("1.0.0")
166
+
167
+ BUILDER_CONFIG_CLASS = MuLMSDatasetBuilderConfig
168
+
169
+ BUILDER_CONFIGS = [
170
+ MuLMSDatasetBuilderConfig(
171
+ name="MuLMS_Corpus",
172
+ version=VERSION,
173
+ description="This part of the dataset covers all annotations.",
174
+ ),
175
+ datasets.BuilderConfig(
176
+ name="NER_Dependencies",
177
+ version=VERSION,
178
+ description="This part of the dataset represents Named Entities as dependencies (returned in CONLL format).",
179
+ ),
180
+ ]
181
+
182
+ DEFAULT_CONFIG_NAME = "MuLMS_Corpus"
183
+
184
+ AZ_HEADING_REPLACEMENT_LABELS = [
185
+ "Supporting Information",
186
+ "Author Contribution",
187
+ "Confict of Interest",
188
+ "Acknowledgment",
189
+ ]
190
+
191
+ def _info(self) -> datasets.DatasetInfo:
192
+ """
193
+ Provides information about this dataset.
194
+
195
+ Returns:
196
+ datasets.DatasetInfo
197
+ """
198
+ if self.config.name == "default":
199
+ self.config.name = self.DEFAULT_CONFIG_NAME
200
+ if self.config.name == "MuLMS_Corpus":
201
+ features: datasets.Features = datasets.Features(
202
+ {
203
+ "doc_id": datasets.Value("string"),
204
+ "sentence": datasets.Value("string"),
205
+ "tokens": datasets.Sequence(datasets.Value("string")),
206
+ "beginOffset": datasets.Value("int32"),
207
+ "endOffset": datasets.Value("int32"),
208
+ "AZ_labels": datasets.Value("string"),
209
+ "Measurement_label": datasets.Value("string"),
210
+ "NER_labels": datasets.Sequence(
211
+ {
212
+ "text": datasets.Value("string"),
213
+ "id": datasets.Value("int32"),
214
+ "value": datasets.Value("string"),
215
+ "begin": datasets.Value("string"),
216
+ "end": datasets.Value("string"),
217
+ "tokenIndices": datasets.Sequence(datasets.Value("int32")),
218
+ }
219
+ ),
220
+ "NER_labels_BILOU": datasets.Sequence(datasets.Value("string")),
221
+ "relations": datasets.Sequence(
222
+ {
223
+ "ne_id_gov": datasets.Value("int32"),
224
+ "ne_id_dep": datasets.Value("int32"),
225
+ "label": datasets.Value("string"),
226
+ }
227
+ ),
228
+ "docFileName": datasets.Value("string"),
229
+ "data_split": datasets.Value("string"),
230
+ "category": datasets.Value("string"),
231
+ }
232
+ )
233
+ elif self.config.name == "NER_Dependencies":
234
+ features: datasets.Features = datasets.Features(
235
+ {
236
+ "ID": datasets.Value("int32"),
237
+ "sentence": datasets.Value("string"),
238
+ "token_id": datasets.Value("int32"),
239
+ "token_text": datasets.Value("string"),
240
+ "NE_Dependencies": datasets.Value("string"),
241
+ "data_split": datasets.Value("string"),
242
+ }
243
+ )
244
+ return datasets.DatasetInfo(
245
+ description=_DESCRIPTION,
246
+ features=features,
247
+ homepage=_HOMEPAGE,
248
+ license=_LICENSE,
249
+ citation=_CITATION,
250
+ )
251
+
252
+ def _split_generators(self, dl_manager: DownloadManager) -> list:
253
+ """
254
+ Downloads files from URL or reads them from the file system and provides _generate_examples
255
+ with necessary information.
256
+
257
+ Args:
258
+ dl_manager (DownloadManager): Handles data retrieval
259
+
260
+ Returns:
261
+ list: Information about files and splits
262
+ """
263
+
264
+ data_files: list = dl_manager.download_and_extract(_URLS)
265
+ self.data_dir: str = join(data_files, "data/mulms_corpus")
266
+ data_files = listdir(join(self.data_dir, "xmi"))
267
+ assert exists(
268
+ join(self.data_dir, "MuLMS_Corpus_Metadata.csv")
269
+ ), "MuLMS_Corpus_Metadata.csv is missing."
270
+
271
+ if "/" in data_files[0]:
272
+ data_files = [f.split("/")[-1] for f in data_files]
273
+ if "\\" in data_files[0]:
274
+ data_files = [f.split("\\")[-1] for f in data_files]
275
+
276
+ metadata_df: pd.DataFrame = pd.read_csv(
277
+ join(self.data_dir, "MuLMS_Corpus_Metadata.csv")
278
+ )
279
+ train_files: list = sorted(
280
+ [
281
+ f
282
+ for f in data_files
283
+ if any(
284
+ name in f
285
+ for name in list(metadata_df[metadata_df["set"].str.contains("train")]["name"])
286
+ )
287
+ ]
288
+ )
289
+ dev_files: list = sorted(
290
+ [
291
+ f
292
+ for f in data_files
293
+ if any(
294
+ name in f for name in list(metadata_df[metadata_df["set"] == "dev"]["name"])
295
+ )
296
+ ]
297
+ )
298
+ test_files: list = sorted(
299
+ [
300
+ f
301
+ for f in data_files
302
+ if any(
303
+ name in f for name in list(metadata_df[metadata_df["set"] == "test"]["name"])
304
+ )
305
+ ]
306
+ )
307
+
308
+ if self.config.name == "MuLMS_Corpus":
309
+ return [
310
+ datasets.SplitGenerator(
311
+ name=datasets.Split.TRAIN,
312
+ gen_kwargs={
313
+ "dir": join(self.data_dir, "xmi"),
314
+ "files": train_files,
315
+ "data_split": metadata_df[metadata_df["set"].str.contains("train")][
316
+ ["name", "set", "category"]
317
+ ],
318
+ },
319
+ ),
320
+ datasets.SplitGenerator(
321
+ name=datasets.Split.VALIDATION,
322
+ gen_kwargs={
323
+ "dir": join(self.data_dir, "xmi"),
324
+ "files": dev_files,
325
+ "data_split": metadata_df[metadata_df["set"] == "dev"][
326
+ ["name", "set", "category"]
327
+ ],
328
+ },
329
+ ),
330
+ datasets.SplitGenerator(
331
+ name=datasets.Split.TEST,
332
+ gen_kwargs={
333
+ "dir": join(self.data_dir, "xmi"),
334
+ "files": test_files,
335
+ "data_split": metadata_df[metadata_df["set"] == "test"][
336
+ ["name", "set", "category"]
337
+ ],
338
+ },
339
+ ),
340
+ ]
341
+
342
+ elif self.config.name == "NER_Dependencies":
343
+ return [
344
+ datasets.SplitGenerator(
345
+ name=datasets.Split.TRAIN,
346
+ gen_kwargs={
347
+ "dir": join(self.data_dir, "ne_dependencies_conll"),
348
+ "files": [
349
+ "ne_deps_train1.conllu",
350
+ "ne_deps_train2.conllu",
351
+ "ne_deps_train3.conllu",
352
+ "ne_deps_train4.conllu",
353
+ "ne_deps_train5.conllu",
354
+ ],
355
+ "data_split": None,
356
+ },
357
+ ),
358
+ datasets.SplitGenerator(
359
+ name=datasets.Split.VALIDATION,
360
+ gen_kwargs={
361
+ "dir": join(self.data_dir, "ne_dependencies_conll"),
362
+ "files": ["ne_deps_dev.conllu"],
363
+ "data_split": None,
364
+ },
365
+ ),
366
+ datasets.SplitGenerator(
367
+ name=datasets.Split.TEST,
368
+ gen_kwargs={
369
+ "dir": join(self.data_dir, "ne_dependencies_conll"),
370
+ "files": ["ne_deps_test.conllu"],
371
+ "data_split": None,
372
+ },
373
+ ),
374
+ ]
375
+
376
+ def _generate_examples(self, dir: str, files: list, data_split: pd.DataFrame):
377
+ """
378
+ Yields the data during runtime.
379
+
380
+ Args:
381
+ dir (str): Path to downloaded or local files.
382
+ files (list): List of filenames corresponding to the current split; must be contained within "dir"
383
+ data_split (pd.DataFrame): Category and train/dev/test split info for each document
384
+
385
+ Yields:
386
+ tuple: Yields document ID and dictionary with current data sample
387
+ """
388
+
389
+ if self.config.name == "MuLMS_Corpus":
390
+
391
+ doc_coll: DocumentCollection = DocumentCollection(
392
+ xmi_dir=dir, file_list=files)
393
+
394
+ split_info: str = None
395
+ category_info: str = None
396
+
397
+ for doc_name in doc_coll.docs:
398
+ doc = doc_coll.docs[doc_name]
399
+ for sent_id, sent_annot in enumerate(
400
+ doc.select_annotations(SENT_TYPE) # noqa: F405
401
+ ):
402
+ sent_text = doc.get_covered_text(sent_annot)
403
+
404
+ # Argumentative Zoning labels
405
+ az_labels = set()
406
+ for matsci_sent in doc.select_covered(
407
+ MATSCI_SENT_TYPE, sent_annot # noqa: F405
408
+ ):
409
+ content_info = matsci_sent.get_feature_value(
410
+ "ContentInformation")
411
+ struct_info = matsci_sent.get_feature_value(
412
+ "StructureInformation")
413
+ az_labels.add(content_info)
414
+ az_labels.add(struct_info)
415
+ if "None" in az_labels:
416
+ az_labels.remove("None")
417
+ if None in az_labels:
418
+ az_labels.remove(None)
419
+ # Extract Measurement related label
420
+ sent_meas_label = list(
421
+ set.intersection(az_labels, meas_labels))
422
+ if len(sent_meas_label) == 2:
423
+ sent_meas_label = "MEASUREMENT"
424
+ elif len(sent_meas_label) == 1:
425
+ sent_meas_label = sent_meas_label[0]
426
+ else:
427
+ sent_meas_label = "O"
428
+ # Remove AZ labels that are not in structure / content tags defined
429
+ az_labels = list(
430
+ set.intersection(all_az_labels, az_labels)
431
+ ) # keep only valid labels
432
+
433
+ if len(az_labels) == 0:
434
+ continue
435
+
436
+ # Tokens
437
+ sent_tokens = list(doc.select_covered(TOKEN_TYPE, sent_annot)) # noqa: F405
438
+ sent_token_list = [0] * len(sent_tokens)
439
+
440
+ token2idx = {}
441
+ for i, token in enumerate(sent_tokens):
442
+ token2idx[token.begin] = i
443
+ sent_token_list[i] = doc.get_covered_text(
444
+ token) # token text
445
+
446
+ # Named Entity annotations
447
+ sent_offset: int = sent_annot.begin
448
+ ner_labels: list = []
449
+ ner_labels_duplicate_lookup: dict = (
450
+ dict()
451
+ ) # Used to detect duplicate Named Entity annotations
452
+ ne_annot2id: dict = {}
453
+ for ent_annot in doc.select_covered(ENTITY_TYPE, sent_annot): # noqa: F405
454
+ if ent_annot.get_feature_value("implicitEntity") is None:
455
+ label = ent_annot.get_feature_value("value")
456
+ if label in ne_labels_set: # filter by applicable labels
457
+ # retrieve token indices
458
+ ent_indices = get_token_indices_for_annot(
459
+ ent_annot, sent_tokens, doc
460
+ )
461
+ if (
462
+ None in ent_indices
463
+ ): # happens if entity annotation is subtoken : choose covering token
464
+ try:
465
+ ent_indices = get_token_index_for_annot_if_subtoken(
466
+ ent_annot, sent_tokens, doc
467
+ )
468
+ except StopIteration:
469
+ pass
470
+ except ValueError:
471
+ pass
472
+ if None in ent_indices:
473
+ continue
474
+
475
+ try:
476
+ ne_annot2id[ent_annot] = ent_annot.id
477
+ ne_dict: dict = {
478
+ "text": doc.get_covered_text(ent_annot),
479
+ "id": ent_annot.id,
480
+ "value": label,
481
+ "begin": ent_annot.begin - sent_offset,
482
+ "end": ent_annot.end - sent_offset,
483
+ "tokenIndices": ent_indices,
484
+ } # index of first + last token of the NE
485
+ if (
486
+ not tuple(
487
+ [ne_dict["value"],
488
+ ne_dict["begin"], ne_dict["end"]]
489
+ )
490
+ in ner_labels_duplicate_lookup.keys()
491
+ ):
492
+ ner_labels.append(ne_dict)
493
+ ner_labels_duplicate_lookup[
494
+ (
495
+ tuple(
496
+ [
497
+ ne_dict["value"],
498
+ ne_dict["begin"],
499
+ ne_dict["end"],
500
+ ]
501
+ )
502
+ )
503
+ ] = ent_annot.id
504
+ else:
505
+ ne_annot2id[ent_annot] = ner_labels_duplicate_lookup[
506
+ (
507
+ tuple(
508
+ [
509
+ ne_dict["value"],
510
+ ne_dict["begin"],
511
+ ne_dict["end"],
512
+ ]
513
+ )
514
+ )
515
+ ]
516
+ except KeyError:
517
+ pass
518
+
519
+ # Creating Nested Named Entity BIO Labels
520
+ B: str = "B-{0}"
521
+ I: str = "I-{0}"
522
+ L: str = "L-{0}"
523
+ O: str = "O"
524
+ U: str = "U-{0}"
525
+ ner_labels.sort(
526
+ key=lambda x: (x["tokenIndices"]
527
+ [0], -x["tokenIndices"][1])
528
+ ) # Work from left to right and prioritize longer strings
529
+ nested_bilou_labels: list = [O] * len(sent_tokens)
530
+ if len(ner_labels) > 0:
531
+ for i in range(len(ner_labels)):
532
+ begin_idx: int = ner_labels[i]["tokenIndices"][0]
533
+ end_idx: int = ner_labels[i]["tokenIndices"][1]
534
+
535
+ # Check whether there are already two NE annotation layers within this span
536
+ skip_current_entity: bool = False
537
+ for j in range(begin_idx, end_idx + 1):
538
+ if (
539
+ nested_bilou_labels[j].count("+") == 2
540
+ ): # Already 3 annotations connected via "+"
541
+ skip_current_entity = True
542
+ break
543
+
544
+ if skip_current_entity:
545
+ continue
546
+
547
+ tag: str = ner_labels[i]["value"]
548
+
549
+ # Case of Unit Length Tag
550
+ if begin_idx == end_idx:
551
+ if nested_bilou_labels[begin_idx] == O:
552
+ nested_bilou_labels[begin_idx] = U.format(
553
+ tag)
554
+ else:
555
+ nested_bilou_labels[begin_idx] += "+" + \
556
+ U.format(tag)
557
+ continue
558
+
559
+ # Tags that span over more than one token
560
+ if nested_bilou_labels[begin_idx] == O:
561
+ nested_bilou_labels[begin_idx] = B.format(tag)
562
+ else:
563
+ nested_bilou_labels[begin_idx] += "+" + \
564
+ B.format(tag)
565
+
566
+ # Append all inside tags
567
+ for j in range(begin_idx + 1, end_idx + 1):
568
+ if j < end_idx:
569
+ if nested_bilou_labels[j] == O:
570
+ nested_bilou_labels[j] = I.format(tag)
571
+ else:
572
+ nested_bilou_labels[j] += "+" + \
573
+ I.format(tag)
574
+ else:
575
+ if nested_bilou_labels[j] == O:
576
+ nested_bilou_labels[j] = L.format(tag)
577
+ else:
578
+ nested_bilou_labels[j] += "+" + \
579
+ L.format(tag)
580
+
581
+ # positive relation instances
582
+ rel_labels: list = []
583
+ for rel_annot in doc.select_covered(RELATION_TYPE, sent_annot): # noqa: F405
584
+ label: str = rel_annot.get_feature_value(
585
+ "RelationType")
586
+
587
+ gov_annot = rel_annot.get_feature_value(
588
+ "Governor", True)
589
+ dep_annot = rel_annot.get_feature_value(
590
+ "Dependent", True)
591
+
592
+ gov_label = gov_annot.get_feature_value("value")
593
+
594
+ if (
595
+ label in rel_label_set
596
+ ): # only consider annotation if in selected set of relations
597
+
598
+ # --- Adding transitive links --- #
599
+ # conditionProperty + propertyValue --> conditionPropertyValue
600
+ # measuresProperty + propertyValue --> measuresPropertyValue
601
+ # Note that this will also happen when the intermediate entity is implicit!
602
+ if gov_label == "MEASUREMENT" and label in {
603
+ "conditionProperty",
604
+ "measuresProperty",
605
+ }:
606
+ for rel_annot2 in doc.select_covered(
607
+ RELATION_TYPE, sent_annot # noqa: F405
608
+ ):
609
+ label2: str = rel_annot2.get_feature_value(
610
+ "RelationType")
611
+ gov_annot2 = rel_annot2.get_feature_value(
612
+ "Governor", True)
613
+ dep_annot2 = rel_annot2.get_feature_value(
614
+ "Dependent", True)
615
+
616
+ if label2 == "propertyValue" and gov_annot2 == dep_annot:
617
+ if label == "conditionProperty":
618
+ transitiveLabel = "conditionPropertyValue"
619
+ elif label == "measuresProperty":
620
+ transitiveLabel = "measuresPropertyValue"
621
+ else:
622
+ assert False
623
+
624
+ try:
625
+ rel_labels.append(
626
+ {
627
+ "ne_id_gov": ne_annot2id[gov_annot],
628
+ "ne_id_dep": ne_annot2id[dep_annot2],
629
+ "label": transitiveLabel,
630
+ }
631
+ )
632
+ except KeyError:
633
+ continue
634
+ # --- End of adding transitive links --- #
635
+
636
+ if (
637
+ gov_annot.get_feature_value(
638
+ "value") not in ne_labels_set
639
+ or dep_annot.get_feature_value("value") not in ne_labels_set
640
+ ):
641
+ # only considering relations between "valid" NE types for now
642
+ continue
643
+ if gov_annot is dep_annot:
644
+ continue
645
+ if (
646
+ gov_annot.begin == dep_annot.begin
647
+ and gov_annot.end == dep_annot.end
648
+ ):
649
+ # same span, continue
650
+ continue
651
+
652
+ if gov_annot not in ne_annot2id:
653
+ # check if it's in a different sentence
654
+ if doc.get_covered_text(dep_annot) == "nanoparticle-type":
655
+ continue
656
+ sent_list2 = list(
657
+ doc.select_covering(SENT_TYPE, gov_annot) # noqa: F405
658
+ )
659
+ try:
660
+ sent_list2.remove(sent_annot)
661
+ except ValueError:
662
+ pass
663
+ if len(sent_list2) == 0:
664
+ continue
665
+ sent_annot2 = sent_list2[0]
666
+ if sent_annot2 is not sent_annot:
667
+ # gov in different sentence, skipping cross-sentence links
668
+ continue
669
+ if dep_annot not in ne_annot2id:
670
+ sent_list2 = list(
671
+ doc.select_covering(SENT_TYPE, dep_annot) # noqa: F405
672
+ )
673
+ try:
674
+ sent_list2.remove(sent_annot)
675
+ except ValueError:
676
+ pass
677
+ if len(sent_list2) == 0:
678
+ continue
679
+ sent_annot2 = sent_list2[0]
680
+ if sent_annot2 != sent_annot:
681
+ # dep in different sentence, skipping cross-sentence links
682
+ continue
683
+
684
+ if gov_annot not in ne_annot2id:
685
+ if gov_annot.get_feature_value("valueType") == "implicit":
686
+ # skip this case, implicit PROPERTY
687
+ continue
688
+ assert False
689
+ if dep_annot not in ne_annot2id:
690
+ assert False
691
+ rel_labels.append(
692
+ {
693
+ "ne_id_gov": ne_annot2id[gov_annot],
694
+ "ne_id_dep": ne_annot2id[dep_annot],
695
+ "label": label,
696
+ }
697
+ )
698
+
699
+ if split_info is None:
700
+ split_info = data_split[data_split["name"]
701
+ == doc_name]["set"].values[0]
702
+ category_info = data_split[data_split["name"] == doc_name][
703
+ "category"
704
+ ].values[0]
705
+
706
+ # Iterator yields data sample sentence-wise
707
+ yield doc_name + "/" + str(sent_id), {
708
+ "doc_id": doc_name,
709
+ "sentence": sent_text,
710
+ "tokens": sent_token_list,
711
+ "beginOffset": sent_annot.begin,
712
+ "endOffset": sent_annot.end,
713
+ "AZ_labels": az_labels,
714
+ "Measurement_label": sent_meas_label,
715
+ "NER_labels": ner_labels,
716
+ "NER_labels_BILOU": nested_bilou_labels,
717
+ # [(ne_index_in_list, ne_index_in_list, relation_name)]
718
+ "relations": rel_labels,
719
+ "docFileName": doc_name,
720
+ "data_split": split_info,
721
+ "category": category_info,
722
+ }
723
+
724
+ split_info = None
725
+ category_info = None
726
+ elif self.config.name == "NER_Dependencies":
727
+ id: int = 0
728
+ sent_id: int = 0
729
+ sent_text: str = None
730
+ for i, f in enumerate(files):
731
+ split_info: str = (
732
+ f"train{i+1}" if "train" in f else (
733
+ "dev" if "dev" in f else "test")
734
+ )
735
+ with open(join(dir, f), mode="r", encoding="utf-8") as cf:
736
+ conll_lines: list[str] = cf.read().splitlines()
737
+ for line in conll_lines:
738
+ if line.startswith("#"):
739
+ sent_text = line.split("# text = ")[-1]
740
+ sent_id += 1
741
+ continue
742
+ elif line == "":
743
+ continue
744
+ t_id, t_text, deps = line.split("\t")
745
+ yield id, {
746
+ "ID": sent_id,
747
+ "sentence": sent_text,
748
+ "token_id": t_id,
749
+ "token_text": t_text,
750
+ "NE_Dependencies": deps,
751
+ "data_split": split_info,
752
+ }
753
+ id += 1
MuLMS_Corpus_Metadata.csv ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Document Title,Authors,Journal,Publisher,DOI,name,Publication date,license,License link,set,category
2
+ Electrochromic solar water splitting using a cathodic WO3 electrocatalyst,Ilknur Bayrak Pehlivan;Gamze Atak;Gunnar A. Niklasson;Lars Stolt;Marika Edoff;Tomas Edvinsson,Nano Energy,Elsevier,10.1016/j.nanoen.2020.105620,electrolysis_01,18.11.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train3,electrolysis
3
+ Assembly of Pt Nanoparticles on Graphitized Carbon Nanofibers as Hierarchically Structured Electrodes,Nejc Hodnik;Luigi Romano;Primož Jovanovič;Francisco Ruiz-Zepeda;Marjan Bele;Filippo Fabbri;Luana Persano;Andrea Camposeo;Dario Pisignano,ACS Applied Nano Materials,American Chemical Society,10.1021/acsanm.0c01945,electrolysis_02,01.09.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,test,electrolysis
4
+ Highly efficient oxygen evolution reaction via facile bubble transport realized by three-dimensionally stack-printed catalysts,Ye Ji Kim;Ahyoun Lim;Jong Min Kim;Donghoon Lim;Keun Hwa Chae;Eugene N. Cho;Hyeuk Jin Han;Ki Ung Jeon;Moohyun Kim;Gun Ho Lee;Gyu Rac Lee;Hyun S. Ahn;Hyun S. Park;Hyoungsoo Kim;Jin Young Kim;Yeon Sik Jung,Nature Communications,Nature Publishing Group,10.1038/s41467-020-18686-0,electrolysis_03,01.10.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train2,electrolysis
5
+ Common-Ion Effect Triggered Highly Sustained Seawater Electrolysis with Additional NaCl Production,Pengsong Li;Shiyuan Wang;Imran Ahmed Samo;Xingheng Zhang;Zhaolei Wang;Cheng Wang;Yang Li;Yiyun Du;Yang Zhong;Congtian Cheng;Wenwen Xu;Xijun Liu;Yun Kuang;Zhiyi Lu;Xiaoming Sun,Research,AAAS,10.34133/2020/2872141,electrolysis_04,24.09.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,dev,electrolysis
6
+ Facilely synthesized nitrogen-doped reduced graphene oxide functionalized with copper ions as electrocatalyst for oxygen reduction,Nadia Garino;Juqin Zeng;Micaela Castellino;Adriano Sacco;Francesca Risplendi;Michele Re Fiorentin;Katarzyna Bejtka;Angelica Chiodoni;Damien Salomon;Jaime Segura-Ruiz;Candido F. Pirri;Giancarlo Cicero,npj 2D Materials and Applications,Nature Publishing Group,10.1038/s41699-020-00185-x,graphene_01,04.01.2021,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train1,graphene
7
+ Direct Laser Writing of Transparent Polyimide Film for Supercapacitor,Fei Huang;Guoying Feng;Jiajia Yin;Sikun Zhou;Li Shen;Shutong Wang;Yun Luo,Nanomaterials,MDPI,10.3390/nano10122547,graphene_02,18.12.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,test,graphene
8
+ Grain boundary excess volume and defect annealing of copper after high-pressure torsion,Bernd Oberdorfer;Daria Setman;Eva-Maria Steyskal;Anton Hohenwarter;Wolfgang Sprengel;Michael Zehetbauer;Reinhard Pippan;Roland Würschum,Acta Materialia,Elsevier,10.1016/j.actamat.2013.12.036,oastm_01,21.02.2014,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train5,steel
9
+ Preparation and characterization of a dual-layer carbon film on 6H-SiC wafer using carbide-derived carbon process with subsequent chemical vapor deposition,Jian Sui;Xiufang Liu,Surface and Coatings Technology,Elsevier,10.1016/j.surfcoat.2013.08.005,oastm_02,13.08.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train4,semi
10
+ Halide doping effects on transparent conducting oxides formed by aerosol assisted chemical vapour deposition,Nuruzzaman Noor;Ivan P. Parkin,Thin Solid Films,Elsevier,10.1016/j.tsf.2012.10.110,oastm_03,20.11.2012,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train1,semi
11
+ The mechanical properties and toughening mechanisms of an epoxy polymer modified with polysiloxane-based core-shell particles,J. Chena;A. J. Kinloch;S. Sprenger;A. C. Taylor,Polymer,Elsevier,10.1016/j.polymer.2013.06.009,oastm_04,17.06.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train4,poly
12
+ Fabrication of calcium phosphate through electrospinning and sintering of hydroxyapatite nanoparticles,Pierre-Alexis Mouthuy;Alison Crossley;Hua Ye,Materials Letters,Elsevier,10.1016/j.matlet.2013.04.110,oastm_05,10.05.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train2,poly
13
+ Direct observation of solute-dislocation interaction on screw dislocation in a neutron irradiated modified 316 stainless steel using laser assisted 3DAP,M. Hatakeyama;S. Tamura;I. Yamagata,Materials Letters,Elsevier,10.1016/j.matlet.2014.01.109,oastm_06,25.01.2014,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train1,steel
14
+ The effects of particle morphology on the analysis of discrete particle dispersion using Delaunay tessellation,D. J. Bray;S. G. Gilmour;F. J. Guild;A. C. Taylor,Composites Part A: Applied Science and Manufacturing,Elsevier,10.1016/j.compositesa.2013.07.003,oastm_07,12.07.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train5,poly
15
+ The modelling of the toughening of epoxy polymers via silica nanoparticles The effects of volume fraction and particle size,D. J. Bray;P. Dittanet;F. J. Guild;A. J. Kinloch;K. Masania;R. A. Pearson;A. C. Taylor,Polymer,Elsevier,10.1016/j.polymer.2013.10.034,oastm_08,26.10.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train3,poly
16
+ "High performance inverted bulk heterojunction solar cells by incorporation of dense, thin ZnO layers made using atmospheric atomic layer deposition",Robert L.Z. Hoye;David Muñoz-Rojas;Diana C. Iza;Kevin P.Musselman;Judith L. MacManus-Driscoll,Solar Energy Materials and Solar Cells,Elsevier,10.1016/j.solmat.2013.04.020,oastm_09,06.06.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,dev,steel
17
+ Influences on the energy delivery of thin film photovoltaic modules,R. Gottschalg;T.R. Betts;A. Eeles;S.R. Williams;J. Zhu,Solar Energy Materials and Solar Cells,Elsevier,10.1016/j.solmat.2013.06.011,oastm_10,23.08.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train3,semi
18
+ Minority carries lifetime in silicon photovoltaics: The effect of oxygen precipitation,J.D. Murphy;R.E. McGuire;K. Bothe;V.V. Voronkov;R.J. Falster,Solar Energy Materials and Solar Cells,Elsevier,10.1016/j.solmat.2013.06.018,oastm_11,15.07.2013,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train5,semi
19
+ Preparation of High Performance and Ultra-Low Platinum Loading Membrane Electrode Assembly for PEMFC Commercial Application,Shengchu Liu;Shang Li;Ruyi Wang;Yan Rao;Qing Zhong;Kang Hong;Mu Pan,Journal of The Electrochemical Society,Electrochemical Society,10.1149/2.0151916jes,pemfc_02,12.12.2019,CC BY,https://creativecommons.org/licenses/by/4.0/legalcode,train1,pemfc
20
+ Ink Solvent Dependence of the Ionomer Distribution in the Catalyst Layer of a PEMFC,Alin Orfanidi;Philipp J. Rheinländer;Nicole Schulte;Hubert A. Gasteiger,Journal of The Electrochemical Society,Electrochemical Society,10.1149/2.1251814jes,pemfc_03,15.11.2018,CC BY,https://creativecommons.org/licenses/by/4.0/legalcode,test,pemfc
21
+ "Full Parametric Study of the Influence of Ionomer Content, Catalyst Loading and Catalyst Type on Oxygen and Ion Transport in PEM Fuel Cell Catalyst Layers",Robert Alink;Rajveer Singh;Patrick Schneider;Kläre Christmann;Johannes Schall;Roman Keding;Nada Zamel,Molecules,MDPI,10.3390/molecules25071523,pemfc_04,27.03.2020,CC BY,https://creativecommons.org/licenses/by/4.0/legalcode,train2,pemfc
22
+ "Effects of carbon supports on Pt distribution, ionomer coverage and cathode performance for polymer electrolyte fuel cells",Young-Chul Park;Haruki Tokiwa;Katsuyoshi Kakinuma;Masahiro Watanabe;Makoto Uchida,Journal of Power Sources,Elsevier,10.1016/j.jpowsour.2016.02.091,pemfc_07,21.03.2016,CC BY,https://creativecommons.org/licenses/by/4.0/legalcode,train5,pemfc
23
+ Applicability of double layer capacitance measurements to monitor local temperature changes at polymer electrolyte membrane fuel cell cathodes,Jarek P. Sabawa;Aliaksandr S. Bandarenka,Results in Chemistry,Elsevier,10.1016/j.rechem.2020.100078,pemfc_08,02.11.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train2,pemfc
24
+ Electron and proton conductivity of Fe-N-C cathodes for PEM fuel cells: A model-based electrochemical impedance spectroscopy measurement,Tatyana Reshetenko;Alexey Serov;Madeleine Odgaard;Günter Randolf;Luigi Osmieri;Andrei Kulikovsky,Electrochemistry Communications,Elsevier,10.1016/j.elecom.2020.106795,pemfc_10,24.07.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train4,pemfc
25
+ Performance hysteresis phenomena of anion exchange membrane fuel cells using an Fe–N–C cathode catalyst and an in-house-developed polymer electrolyte,Kanji Otsuji;Naoki Yokota;Donald A. Tryk;Katsuyoshi Kakinuma;Kenji Miyatake;Makoto Uchida,Journal of Power Sources,Elsevier,10.1016/j.jpowsour.2020.229407,pemfc_13,06.01.2021,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,dev,pemfc
26
+ Transport and Electrochemical Interface Properties of Ionomers in Low-Pt Loading Catalyst Layers: Effect of Ionomer Equivalent Weight and Relative Humidity,Sushmit Poojary;Muhammad Naoshad Islam;Udit N. Shrivastava;Edward P. L. Roberts;Kunal Karan,Molecules,MDPI,10.3390/molecules25153387,pemfc_14,26.07.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train3,pemfc
27
+ Experimental Characterization and Simulation of Thermoplastic Polymer Flow Hesitation in Thin-Wall Injection Molding Using Direct In-Mold Visualization Technique,Francesco Regi;Patrick Guerrier;Yang Zhang;Guido Tosello,Micromachines,MDPI,10.3390/mi11040428,poly_01,19.04.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train2,poly
28
+ Molecular Dynamics Simulation on the Interfacial Behavior of Over-Molded Hybrid Fiber Reinforced Thermoplastic Composites,Bingyan Jiang;Muhan Zhang;Liang Fu;Mingyong Zhou;Zhanyu Zhai,Polymers,MDPI,10.3390/polym12061270,poly_02,02.06.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train4,poly
29
+ Radial Basis Function Neural Network-Based Modeling of the Dynamic Thermo-Mechanical Response and Damping Behavior of Thermoplastic Elastomer Systems,Ivan Kopal;Marta Harničárová;Jan Valíček;Jan Krmela;Ondrej Lukáč,Polymers,MDPI,10.3390/polym11061074,poly_04,21.06.2019,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train1,poly
30
+ Modeling the Temperature Dependence of Dynamic Mechanical Properties and Visco-Elastic Behavior of Thermoplastic Polyurethane Using Artificial Neural Network,Ivan Kopal;Marta Harničárová;Jan Valíček;Milena Kušnerová,Polymers,MDPI,10.3390/polym9100519,poly_05,18.10.2017,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train3,poly
31
+ Identification of the elasto-viscoplastic parameters for a thermoplastic polymer by instrumented indentation,A. Mokhtari;N. Tala Ighil,IOP Conference Series: Materials Science and Engineering,IOP Publishing,10.1088/1757-899X/461/1/012057,poly_07,12.2018,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train5,poly
32
+ Determination of polymer melts flow-activation energy a function of wide range shear rate,G Toth;D Nagy;A Bata;K Belina,Journal of Physics: Conference Series,IOP Publishing,10.1088/1742-6596/1045/1/012040,poly_09,06.2018,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,test,poly
33
+ Morphological Monte Carlo Simulation for Crystallization of Isotactic Polypropylene in a Temperature Gradient,Chunlei Ruan,Crystals,MDPI,10.3390/cryst9040213,poly_11,20.04.2019,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,dev,poly
34
+ "Application of UV photoluminescence imaging spectroscopy for stacking faults identification on thick, lightly n-type doped, 4°-off 4H-SiC epilayers",N. Thierry-Jebali;C. Kawahara;T. Miyazawa;H. Tsuchida;T. Kimoto,AIP Advances,American Institute of Physics,10.1063/1.4915128,semi_01,12.03.2015,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train5,semi
35
+ Photoluminescence study of oxidation-induced faults in 4H-SiC epilayers,Yutaro Miyano;Ryosuke Asafuji;Shuhei Yagi;Yasuto Hijikata;Hiroyuki Yaguchi,AIP Advances,American Institute of Physics,10.1063/1.4938126,semi_02,14.12.2015,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train4,semi
36
+ Behavior of SiC MOSFET under Short-Circuit during the On-State,Meiting Cui;Jinyuan Li;Yujie Du;Zhibin Zhao,IOP Conference Series: Materials Science and Engineering,IOP Publishing,10.1088/1757-899X/439/2/022026,semi_03,11.2018,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,train3,semi
37
+ "Mobility improvement of 4H-SiC (0001) MOSFETs by a three-step process of H2 etching, SiO2 deposition, and interface nitridation",Keita Tachiki;Mitsuaki Kaneko;Tsunenobu Kimoto,Applied Physics Express,IOP Publishing,10.35848/1882-0786/abdcd9,semi_04,29.01.2021,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,dev,semi
38
+ Genesis and evolution of extended defects: The role of evolving interface instabilities in cubic SiC,Giuseppe Fisicaro;Corrado Bongiorno;Ioannis Deretzis;Filippo Giannazzo;Francesco La Via;Fabrizio Roccaforte;Marcin Zielinski;Massimo Zimbone;Antonino La Magna,Applied Physics Reviews,American Institute of Physics,10.1063/1.5132300,semi_05,28.04.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train2,semi
39
+ Brominated Chemistry for Chemical Vapor Deposition of Electronic Grade SiC,Milan Yazdanfar;Örjan Danielsson;Emil Kalered;Pitsiri Sukkaew;Olle Kordina;Daniel Nilsson;Ivan G. Ivanov;Lars Ojamäe;Erik Janzén;Henrik Pedersen,Chemistry of Materials,American Chemical Society,10.1021/acs.chemmater.5b00074,semi_06,22.01.2015,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train1,semi
40
+ Free-standing 2-inch bulk GaN crystal fabrication by HVPE using a carbon buffer layer,V V Voronenkov;A A Leonidov;N I Bochkareva;R I Gorbunov;P E Latyshev;Y S Lelikov;V S Kogotkov;A S Zubrilov;Y G Shreter,Journal of Physics: Conference Series,IOP Publishing,10.1088/1742-6596/1199/1/012004,semi_08,02.2019,CC-BY 3.0,https://creativecommons.org/licenses/by/3.0/legalcode,test,semi
41
+ Rational Design of a Water-Storable Hierarchical Architecture Decorated with Amorphous Barium Oxide and Nickel Nanoparticles as a Solid Oxide Fuel Cell Anode with Excellent Sulfur Tolerance,Yufei Song;Wei Wang;Lei Ge;Xiaomin Xu;Zhenbao Zhang;Paulo Sérgio Barros Julião;Wei Zhou;Zongping Shao,Advanced Science,Wiley-VCH,10.1002/advs.201700337,sofc_01,15.09.2017,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,test,sofc
42
+ Micro solid oxide fuel cell fabricated on porous stainless steel: a new strategy for enhanced thermal cycling ability,Kun Joong Kim;Byung Hyun Park;Sun Jae Kim;Younki Lee;Hongyeul Bae;Gyeong Man Choi,Scientific Reports,Nature Research,10.1038/srep22443,sofc_02,01.03.2016,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train3,sofc
43
+ In Situ Impedance Analysis of Oxygen Exchange on Growing La0.6Sr0.4CoO3−δ Thin Films,Ghislain M. Rupp;Markus Kubicek;Alexander K. Opitz;Jürgen Fleig,ACS Applied Energy Materials,American Chemical Society,10.1021/acsaem.8b00586,sofc_03,20.08.2018,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train4,sofc
44
+ 3D Self‐Architectured Steam Electrode Enabled Efficient and Durable Hydrogen Production in a Proton‐Conducting Solid Oxide Electrolysis Cell at Temperatures Lower Than 600 °C,Wei Wu;Hanping Ding;Yunya Zhang;Yong Ding;Prashant Katiyar;Prasun K. Majumdar;Ting He;Dong Ding,Advanced Science,Wiley-VCH,10.1002/advs.201800360,sofc_04,31.08.2018,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,dev,sofc
45
+ The Influence of Magnetic Field on Fatigue and Mechanical Properties of a 35CrMo Steel,Qing Gu;Xiaxu Huang;Jiangtao Xi;Zhenfeng Gao,Metals,MDPI,10.3390/met11040542,steel_03,26.03.2021,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train5,steel
46
+ Study of 13Cr-4Ni-(Mo) (F6NM) Steel Grade Heat Treatment for Maximum Hardness Control in Industrial Heats,Massimo De Sanctis;Gianfranco Lovicu;Massimiliano Buccioni;Angelo Donato;Maria Richetta;Alessandra Varone,Metals,MDPI,10.3390/met7090351,steel_04,06.09.2017,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,test,steel
47
+ "Effect of Annealing Time and Temperature Parameters on the Microstructure, Hardness, and Strain-Hardening Coefficients of 42CrMo4 Steel",Mirosław Szala;Grzegorz Winiarski;Łukasz Wójcik;Tomasz Bulzak,Materials,MDPI,10.3390/ma13092022,steel_05,26.04.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train1,steel
48
+ Study on Inclusions Distribution and Cyclic Fatigue Performance of Gear Steel 18CrNiMo7-6 Forging,Min Wang;Wei Xiao;Peng Gan;Chao Gu;Yan-Ping Bao,Metals,MDPI,10.3390/met10020201,steel_06,31.01.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train4,steel
49
+ On the Influence of Control Type and Strain Rate on the Lifetime of 50CrMo4,Max Benedikt Geilen;Josef Arthur Schönherr;Marcus Klein;Dominik Sebastian Leininger;Alexander Giertler;Ulrich Krupp;Matthias Oechsner,Metals,MDPI,10.3390/met10111458,steel_07,30.10.2020,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,dev,steel
50
+ Evolution of White Etching Bands in 100Cr6 Bearing Steel under Rolling Contact-Fatigue,Hanwei Fu;Pedro E. J. Rivera-Díaz-del-Castillo,Metals,MDPI,10.3390/met9050491,steel_08,27.04.2019,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train3,steel
51
+ Effect of Pre-Corrosion Pits on Residual Fatigue Life for 42CrMo Steel,Dezheng Liu;Yan Li;Xiangdong Xie;Jing Zhao,Materials,MDPI,10.3390%2Fma12132130,steel_11,02.07.2019,CC-BY 4.0,https://creativecommons.org/licenses/by/4.0/legalcode,train2,steel
README.md CHANGED
@@ -1,3 +1,286 @@
1
  ---
2
  license: cc-by-sa-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-sa-4.0
3
+ language:
4
+ - en
5
+ size_categories:
6
+ - 10K<n<100K
7
+ source_datasets:
8
+ - original
9
+ task_categories:
10
+ - fill-mask
11
+ - token-classification
12
+ - text-classification
13
+ task_ids:
14
+ - named-entity-recognition
15
+ - slot-filling
16
+ pretty_name: Multi-Layer Materials Science Corpus
17
  ---
18
+
19
+ # Dataset Card for MuLMS
20
+
21
+ <p>
22
+ <img src="teaser.png">
23
+ <em>Example annotation in the Multi-Layer Materials Science Corpus (image source: <a href="https://arxiv.org/abs/2310.15569"> MuLMS: A Multi-Layer Annotated Text Corpus for Information Extraction in the Materials Science Domain</a>)<em>
24
+ </p>
25
+
26
+ ### Dataset Description
27
+
28
+ The Multi-Layer Materials Science corpus (MuLMS) consists of 50 documents (licensed CC BY) from the materials science domain, spanning across the following 7 subareas:
29
+ "Electrolysis", "Graphene", "Polymer Electrolyte Fuel Cell (PEMFC)", "Solid Oxide Fuel Cell (SOFC)", "Polymers", "Semiconductors" and "Steel".
30
+ It was exhaustively annotated by domain experts. There are annotations on sentence-level and token-level for the following NLP tasks:
31
+
32
+ * __Measurement Frames__: Measurement annotations are treated in a frame-like fashion, using the span type MEASUREMENT to mark the triggers (e.g.,
33
+ was measured, is plotted) that introduce the Measurement frame to the discourse. Deciding whether a sentence contains a measurement trigger is treated as a
34
+ sentence-level task, determining the span that triggers the measurement frame is treated as named entity recognition.
35
+ * __Named Entities__: There are 12 token-level named entities (+ Measurement trigger) available in MuLMS. Named entities can span across multiple tokens.
36
+ * __Relations__: MuLMS provides relations between pairs of entities. There are two types of relations: measurement-related relations and further relations.
37
+ The first type always starts at Measurement trigger spans, the scond type does not start at a specific Measurement annotation.
38
+ * __Argumentative Zones__: Each sentence in MuLMS is assigned a rhetorical function in the discourse (e.g., _Background_ or _Experiment_Preparation_). There are 12 argumentative
39
+ zones in MuLMS, which leads to a sentence-level classification task.
40
+
41
+ You can find all experiment code files and further information in the [MuLMS-AZ Repo](https://github.com/boschresearch/mulms-az-codi2023) and [MuLMS Repo](https://github.com/boschresearch/mulms-wiesp2023).
42
+ For dataset statistics, please refer to both papers listed below. There you can also find detailed explanation of all parts of MuLMS in very detail.
43
+
44
+ - **Curated by:** [Bosch Center for AI](https://www.bosch-ai.com/) and [Bosch Research](https://www.bosch.com/research/)
45
+ - **Funded by**: [Robert Bosch GmbH](https://www.bosch.de/)
46
+ - **Language(s) (NLP):** English
47
+ - **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt)
48
+
49
+ ## Dataset Details
50
+
51
+ MuLMS provides all annotated files in UIMA CAS XMI format that can be used with annotation tools that can read these files such as [INCEpTION](https://inception-project.github.io/).
52
+
53
+ __Important:__ To use the dataset reader, please install the UIMA CAS Python reader _puima_ using the following command: `pip install git+https://github.com/annefried/puima.git`.
54
+
55
+ ### Dataset Sources
56
+
57
+ <!-- Provide the basic links for the dataset. -->
58
+
59
+ - **Repository:** https://github.com/boschresearch/mulms-az-codi2023, https://github.com/boschresearch/mulms-wiesp2023
60
+ - **Paper:** https://aclanthology.org/2023.codi-1.1/, https://arxiv.org/abs/2310.15569
61
+
62
+ ## Uses
63
+
64
+ <!-- Address questions around how the dataset is intended to be used. -->
65
+
66
+ ### Direct Use
67
+
68
+ This dataset aims at information extraction from materials science documents. It enables the training of (neural) classifiers that can be used for downstream tasks such as NER and relation extraction.
69
+ Please refer to both repos linked above for training BERT-like models on all NLP tasks provided in MuLMS.
70
+
71
+ ## Dataset Structure
72
+
73
+ <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
74
+
75
+ MuLMS offers two configs: _MuLMS_Corpus_, which loads the entire MuLMS dataset, and _NER_Dependecies_, which loads only Named Entities in CONLL format in order
76
+ to train models in the _NER_as_dependency_parsing_ setting.
77
+
78
+ MuLMS is divided into three split: _train_, _validation_, and _test_. Furthermore, _train_ is divided into five sub-splits, namely _tune1_,...,_tune5_.
79
+ This allows for model training on four splits, early stopping on the fivth and remaining split, model picking on validation and evaluation only once on test.
80
+ HuggingFace datasets do not support these sub-splits, hence they must be loaded as _train_ and post-processed and filtered afterward in a custom dataset loader.
81
+
82
+ ### Dataset Config _MuLMS_Corpus_
83
+
84
+ - `doc_id`: ID of the source document that can be used to lookup the metadata of the paper in [MuLMS_Corpus_Metadata.csv](MuLMS_Corpus_Metadata.csv).
85
+ - `sentence`: Each instance in the dataset corresponds to one sentence extracted from scientic papers. These sentences are listed in this field.
86
+ - `tokens`: Pre-tokenized sentences. Each instance is a list of tokens.
87
+ - `begin_offset`: Offset of the beginning of each sentence within the full text of the document.
88
+ - `end_offset`: Offset of the end of each sentence within the full text of the document.
89
+ - `AZ_labels`: The argumentative zone (= rhetorical function) of each sentence in the discourse of a materials science publication.
90
+ - `Measurement_label`: Labels each sentence whether it contains a measurement description, i.e., measurement frame evoking trigger word, or not.
91
+ - `NER_labels`: Contains lists with named entities (NEs) per instance. Every named entity uses one of n indices in these lists, i.e., every 0-th element belong to each other, ...
92
+ - `text`: List of tokens that are contained in the current sentence instance.
93
+ - `id`: Unique ID for each named entity
94
+ - `value`: The named entity class
95
+ - `begin`: Character offsets of the begin tokens of each NE
96
+ - `end`: Character offsets of the end tokens of each NE
97
+ - `tokenIndices`: Token index in the list of tokens
98
+ - `NER_labels_BILOU`: BILOU tag sequence per token in the sentence (B = begin, I = inside, L = last, O = none, U = unit).
99
+ - `relations`: Lists of relations between pair-wise entities. As with the named entities, each relation corresponds to the same index in all three lists (_ne_id_gov_, _ne_id_dep_, _label_)
100
+ - `ne_id_gov`: List of NE entity IDs that act as head of the relation
101
+ - `ne_id_dep`: List of NE entity IDs that are the tail of the relation
102
+ - `label`: Relation label between both entities
103
+ - `docFileName`: Name of the source document in the corpus
104
+ - `data_split`: Indicates the split which a document belongs to (tune1/2/3/4/5, dev, test)
105
+ - `category`: One of 7 materials science sub-domains in MuLMS (SOFC, graphene, electrolysis, PEMFC, )
106
+
107
+ ### Dataset Config _NER_Dependencies_
108
+
109
+ Each instance in this config refers to one token and carries a copy of the entire sentence, i.e., for _n_ tokens in a sentence, the text of the sentence is given _n_ times.
110
+
111
+ - `index`: Unique instance ID for each token.
112
+ - `ID`: Sentence ID. As opposed to the other config, the sentences here are not sorted by document and provided in their full form for every token they belong to.
113
+ - `Sentence`: Sentence string
114
+ - `Token_ID`: Unique ID for each token within each sentence. ID is resetted for each new sentence.
115
+ - `Token`: Token string
116
+ - `NE_Dependencies`: The named entity tag of form _k:LABEL_ where _k_ refers to the ID of the begin token and _LABEL_ to the named entity. The entity ends at the token holding this
117
+ - label.
118
+ - `data_split`: Indicates the split which a document belongs to (tune1/2/3/4/5, dev, test)
119
+
120
+ ### Labels
121
+
122
+ For the different layers, the following labels are available:
123
+
124
+ * __Measurement Frames__:
125
+ * `Measurement`
126
+ * `Qual_Measurement`
127
+ * __Named Entities__:
128
+ * `MAT`
129
+ * `NUM`
130
+ * `VALUE`
131
+ * `UNIT`
132
+ * `PROPERTY`
133
+ * `FORM`
134
+ * `MEASUREMENT` (measurement frame-evoking trigger)
135
+ * `CITE`
136
+ * `SAMPLE`
137
+ * `TECHNIQUE`
138
+ * `DEV`
139
+ * `RANGE`
140
+ * `INSTRUMENT`
141
+ * __Relations__:
142
+ * `hasForm`
143
+ * `measuresProperty`
144
+ * `usedAs`
145
+ * `propertyValue`
146
+ * `conditionProperty`
147
+ * `conditionSample`
148
+ * `conditionPropertyValue`
149
+ * `usesTechnique`
150
+ * `measuresPropertyValue`
151
+ * `usedTogether`
152
+ * `conditionEnv`
153
+ * `usedIn`
154
+ * `conditionInstrument`
155
+ * `takenFrom`
156
+ * `dopedBy`
157
+ * __Argumentative Zones__:
158
+ * `Motivation`
159
+ * `Background`
160
+ * `PriorWork`
161
+ * `Experiment`
162
+ * `Preparation`
163
+ * `Characterization`
164
+ * `Explanation`
165
+ * `Results`
166
+ * `Conclusion`
167
+ * `Heading`
168
+ * `Caption`
169
+ * `Metadata`
170
+
171
+ ## Dataset Creation
172
+
173
+ ### Curation Rationale
174
+
175
+ <!-- Motivation for the creation of this dataset. -->
176
+
177
+ Keeping track of all relevant recent publications and experimental results for a research area is a challenging task. MuLMS addresses this problem by
178
+ providing a large set of annotated documents that allow for training models that can be used for automated information extraction and answering search queries
179
+ in materials science documents.
180
+
181
+ ### Source Data
182
+
183
+ <!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
184
+
185
+ You can find all the details for every document in this corpus in [MuLMS_Corpus_Metadata.csv](MuLMS_Corpus_Metadata.csv).
186
+
187
+ #### Who are the source data producers?
188
+
189
+ <!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
190
+
191
+ You can find all the authors for every document in this corpus in [MuLMS_Corpus_Metadata.csv](MuLMS_Corpus_Metadata.csv).
192
+
193
+ #### Annotation process
194
+
195
+ The annotation process included guideline design in dedicated discussion sessions. Afterward, the text files were annotated
196
+ using [INCEpTION](https://inception-project.github.io/).
197
+
198
+ #### Who are the annotators?
199
+
200
+ The annotators worked collaboratively to annotate the dataset in the best possible way. All people in this project either have background in materials science or computer
201
+ science. This synergy enables to incorporate both views, the materials scientist view that has a deep knowledge about the topics themselves as well as the CS view that
202
+ always looks at processing text data automatically in a structured fashion.
203
+
204
+ #### Personal and Sensitive Information
205
+
206
+ <!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
207
+
208
+ This dataset does not contain any personal, sensitive or private data. MuLMS builds upon publicly available scientific publications and all authors are credited accordingly.
209
+
210
+ ## Citation
211
+
212
+ If you use our software or dataset in your scientific work, please cite both papers:
213
+
214
+ **BibTeX:**
215
+ ```
216
+ @misc{schrader2023mulms,
217
+ title={MuLMS: A Multi-Layer Annotated Text Corpus for Information Extraction in the Materials Science Domain},
218
+ author={Timo Pierre Schrader and Matteo Finco and Stefan Grünewald and Felix Hildebrand and Annemarie Friedrich},
219
+ year={2023},
220
+ eprint={2310.15569},
221
+ archivePrefix={arXiv},
222
+ primaryClass={cs.CL}
223
+ }
224
+
225
+ @inproceedings{schrader-etal-2023-mulms,
226
+ title = "{M}u{LMS}-{AZ}: An Argumentative Zoning Dataset for the Materials Science Domain",
227
+ author = {Schrader, Timo and
228
+ B{\"u}rkle, Teresa and
229
+ Henning, Sophie and
230
+ Tan, Sherry and
231
+ Finco, Matteo and
232
+ Gr{\"u}newald, Stefan and
233
+ Indrikova, Maira and
234
+ Hildebrand, Felix and
235
+ Friedrich, Annemarie},
236
+ booktitle = "Proceedings of the 4th Workshop on Computational Approaches to Discourse (CODI 2023)",
237
+ month = jul,
238
+ year = "2023",
239
+ address = "Toronto, Canada",
240
+ publisher = "Association for Computational Linguistics",
241
+ url = "https://aclanthology.org/2023.codi-1.1",
242
+ doi = "10.18653/v1/2023.codi-1.1",
243
+ pages = "1--15",
244
+ }
245
+ ```
246
+
247
+ ## Changes
248
+
249
+ Changes to the source code from the original repo are listed in the [CHANGELOG](CHANGELOG) file.
250
+
251
+ ## Copyright
252
+
253
+ ```
254
+ Experiment resources related to the MuLMS corpus.
255
+ Copyright (c) 2023 Robert Bosch GmbH
256
+
257
+ This program is free software: you can redistribute it and/or modify
258
+ it under the terms of the GNU Affero General Public License as published
259
+ by the Free Software Foundation, either version 3 of the License, or
260
+ (at your option) any later version.
261
+
262
+ This program is distributed in the hope that it will be useful,
263
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
264
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
265
+ GNU Affero General Public License for more details.
266
+ You should have received a copy of the GNU Affero General Public License
267
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
268
+ ```
269
+
270
+ ## License
271
+
272
+ This software is open-sourced under the AGPL-3.0 license. See the
273
+ [LICENSE_CODE](LICENSE_CODE) file for details.
274
+ The MuLMS corpus is released under the [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt) license. See the [LICENSE_CORPUS](LICENSE_CORPUS) file for details.
275
+
276
+ ## Dataset Card Authors
277
+
278
+ * Timo Pierre Schrader (Bosch Center for AI, University of Augsburg)
279
+ * Matteo Finco (Bosch Research)
280
+ * Stefan Grünewald (Bosch Center for AI, University of Stuttgart)
281
+ * Felix Hildebrand (Bosch Research)
282
+ * Annemarie Friedrich (University of Augsburg)
283
+
284
+ ## Dataset Card Contact
285
+
286
+ For all questions, please contact [Timo Schrader](mailto:timo.schrader@de.bosch.com).
data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f0362636b47b937ce54703b87ac682d96c983f2df4178c5003e1b76c0601466
3
+ size 7442384
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ lxml==4.7.1
2
+ pandas==1.3.2
3
+ puima @ git+https://github.com/annefried/puima@f8aa27ea2b84dfb294801ab680d377908c119be4
teaser.png ADDED

Git LFS Details

  • SHA256: 7de6dd1a4333f680456cafb10cec4385f93c19f99392113a7fa6e319530cb887
  • Pointer size: 131 Bytes
  • Size of remote file: 270 kB