anrouxel commited on
Commit
48fe5f4
1 Parent(s): bbabdf0

Initial Commit

Browse files
Files changed (6) hide show
  1. LICENSE.md +311 -0
  2. MedicApp.png +0 -0
  3. README.md +11 -3
  4. id_to_label.txt +9 -0
  5. model.pt +3 -0
  6. vocab.txt +0 -0
LICENSE.md ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ European Union Public Licence
2
+ V. 1.1
3
+
4
+
5
+ EUPL © the European Community 2007
6
+
7
+
8
+ This European Union Public Licence (the “EUPL”) applies to the
9
+ Work or Software (as defined below) which is provided under the terms of this
10
+ Licence. Any use of the Work, other than as authorised under this Licence is
11
+ prohibited (to the extent such use is covered by a right of the copyright
12
+ holder of the Work).
13
+
14
+ The Original Work is provided under the terms of this
15
+ Licence when the Licensor (as defined below) has placed the following notice
16
+ immediately following the copyright notice for the Original Work:
17
+
18
+ Licensed under the EUPL V.1.1
19
+
20
+ or has expressed by any other mean his willingness to license under the EUPL.
21
+
22
+
23
+ 1. Definitions
24
+
25
+ In this Licence, the
26
+ following terms have the following meaning:
27
+
28
+ - The Licence: this Licence.
29
+
30
+ - The Original Work or the Software: the software distributed
31
+ and/or communicated by the Licensor under this Licence, available as Source
32
+ Code and also as Executable Code as the case may be.
33
+
34
+ - Derivative Works:
35
+ the works or software that could be created by the Licensee, based upon the
36
+ Original Work or modifications thereof. This Licence does not define the
37
+ extent of modification or dependence on the Original Work required in order to
38
+ classify a work as a Derivative Work; this extent is determined by copyright
39
+ law applicable in the country mentioned in Article 15.
40
+
41
+ - The Work: the Original Work and/or its Derivative Works.
42
+
43
+ - The Source Code: the human-readable form of the Work which is the most
44
+ convenient for people to study and modify.
45
+
46
+ - The Executable Code: any code which has generally been compiled and which
47
+ is meant to be interpreted by a computer as a program.
48
+
49
+ - The Licensor: the natural or legal person that distributes and/or
50
+ communicates the Work under the Licence.
51
+
52
+ - Contributor(s): any natural or legal person who modifies the Work under the
53
+ Licence, or otherwise contributes to the creation of a Derivative Work.
54
+
55
+ - The Licensee or “You”: any natural or legal person who makes any usage of
56
+ the Software under the terms of the Licence.
57
+
58
+ - Distribution and/or Communication: any act of selling, giving, lending,
59
+ renting, distributing, communicating, transmitting, or otherwise
60
+ making available, on-line or off-line, copies of the Work or providing access
61
+ to its essential functionalities at the disposal of any other natural or legal
62
+ person.
63
+
64
+
65
+ 2. Scope of the rights granted by the Licence
66
+
67
+ The Licensor hereby grants You a world-wide, royalty-free, non-exclusive,
68
+ sub-licensable licence to do the following, for the duration of copyright
69
+ vested in the Original Work:
70
+
71
+ - use the Work in any circumstance and for all usage,
72
+ - reproduce the Work,
73
+ - modify the Original Work, and make Derivative Works
74
+ based upon the Work,
75
+ - communicate to the public, including the right to make available or display
76
+ the Work or copies thereof to the public and perform publicly, as the case
77
+ may be, the Work,
78
+ - distribute the Work or copies thereof,
79
+ - lend and rent the Work or copies thereof,
80
+ - sub-license rights in the Work or copies thereof.
81
+
82
+ Those rights can be exercised on any media, supports and formats, whether now
83
+ known or later invented, as far as the applicable law permits so.
84
+
85
+ In the countries where moral rights apply, the Licensor waives his right to
86
+ exercise his moral right to the extent allowed by law in order to make
87
+ effective the licence of the economic rights here above listed.
88
+
89
+ The Licensor grants to the Licensee royalty-free, non exclusive usage rights
90
+ to any patents held by the Licensor, to the extent necessary to make use of
91
+ the rights granted on the Work under this Licence.
92
+
93
+
94
+ 3. Communication of the Source Code
95
+
96
+ The Licensor may provide the Work either
97
+ in its Source Code form, or as Executable Code. If the Work is provided as
98
+ Executable Code, the Licensor provides in addition a machine-readable copy of
99
+ the Source Code of the Work along with each copy of the Work that the Licensor
100
+ distributes or indicates, in a notice following the copyright notice attached
101
+ to the Work, a repository where the Source Code is easily and freely
102
+ accessible for as long as the Licensor continues to distribute and/or
103
+ communicate the Work.
104
+
105
+
106
+ 4. Limitations on copyright
107
+
108
+ Nothing in this Licence is intended to deprive the Licensee of the benefits
109
+ from any exception or limitation to the exclusive rights of the rights owners
110
+ in the Original Work or Software, of the exhaustion of those rights or of
111
+ other applicable limitations thereto.
112
+
113
+
114
+ 5. Obligations of the Licensee
115
+
116
+ The grant of the rights mentioned above is subject to some restrictions and
117
+ obligations imposed on the Licensee. Those obligations are the following:
118
+
119
+ Attribution right:
120
+ the Licensee shall keep intact all copyright, patent or trademarks notices and
121
+ all notices that refer to the Licence and to the disclaimer of warranties. The
122
+ Licensee must include a copy of such notices and a copy of the Licence with
123
+ every copy of the Work he/she distributes and/or communicates. The Licensee
124
+ must cause any Derivative Work to carry prominent notices stating that the
125
+ Work has been modified and the date of modification.
126
+
127
+ Copyleft clause:
128
+ If the Licensee distributes and/or communicates copies of the Original Works
129
+ or Derivative Works based upon the Original Work, this Distribution and/or
130
+ Communication will be done under the terms of this Licence or of a later
131
+ version of this Licence unless the Original Work is expressly distributed only
132
+ under this version of the Licence. The Licensee (becoming Licensor) cannot
133
+ offer or impose any additional terms or conditions on the Work or Derivative
134
+ Work that alter or restrict the terms of the Licence.
135
+
136
+ Compatibility clause:
137
+ If the Licensee Distributes and/or Communicates Derivative Works or copies
138
+ thereof based upon both the Original Work and another work licensed under a
139
+ Compatible Licence, this Distribution and/or Communication can be done under
140
+ the terms of this Compatible Licence. For the sake of this clause,
141
+ “Compatible Licence” refers to the licences listed in the appendix
142
+ attached to this Licence. Should the Licensee’s obligations under the
143
+ Compatible Licence conflict with his/her obligations under this Licence, the
144
+ obligations of the Compatible Licence shall prevail.
145
+
146
+ Provision of Source Code:
147
+ When distributing and/or communicating copies of the Work, the Licensee
148
+ will provide a machine-readable copy of the Source Code or indicate a
149
+ repository where this Source will be easily and freely available for as long
150
+ as the Licensee continues to distribute and/or communicate the Work.
151
+
152
+ Legal Protection:
153
+ This Licence does not grant permission to use the trade names,
154
+ trademarks, service marks, or names of the Licensor, except as required for
155
+ reasonable and customary use in describing the origin of the Work and
156
+ reproducing the content of the copyright notice.
157
+
158
+
159
+ 6. Chain of Authorship
160
+
161
+ The original Licensor warrants that the copyright in the Original Work
162
+ granted hereunder is owned by him/her or licensed to him/her and
163
+ that he/she has the power and authority to grant the Licence.
164
+
165
+ Each Contributor warrants that the copyright in the modifications he/she
166
+ brings to the Work are owned by him/her or licensed to him/her and that
167
+ he/she has the power and authority to grant the Licence.
168
+
169
+ Each time You accept the Licence, the original Licensor and subsequent
170
+ Contributors grant You a licence to their contributions to the Work, under
171
+ the terms of this Licence.
172
+
173
+
174
+ 7. Disclaimer of Warranty
175
+
176
+ The Work is a work in progress, which is continuously improved by numerous
177
+ contributors. It is not a finished work and may therefore contain defects or
178
+ “bugs” inherent to this type of software development.
179
+
180
+ For the above reason, the Work is provided under the Licence on an “as is”
181
+ basis and without warranties of any kind concerning the Work, including
182
+ without limitation merchantability, fitness for a particular purpose, absence
183
+ of defects or errors, accuracy, non-infringement of intellectual property
184
+ rights other than copyright as stated in Article 6 of this Licence.
185
+
186
+ This disclaimer of warranty is an essential part of the Licence and a
187
+ condition for the grant of any rights to the Work.
188
+
189
+
190
+ 8. Disclaimer of Liability
191
+
192
+ Except in the cases of wilful misconduct or damages directly caused to
193
+ natural persons, the Licensor will in no event be liable for any direct or
194
+ indirect, material or moral, damages of any kind, arising out of the Licence
195
+ or of the use of the Work, including without limitation,
196
+ damages for loss of goodwill, work stoppage, computer failure or malfunction,
197
+ loss of data or any commercial damage, even if the Licensor has been advised
198
+ of the possibility of such damage. However, the Licensor will be liable under
199
+ statutory product liability laws as far such laws apply to the Work.
200
+
201
+
202
+ 9. Additional agreements
203
+
204
+ While distributing the Original Work or Derivative Works, You may choose
205
+ to conclude an additional agreement to offer, and charge a fee for,
206
+ acceptance of support, warranty, indemnity, or other liability
207
+ obligations and/or services consistent with this Licence. However, in
208
+ accepting such obligations, You may act only on your own behalf and on your
209
+ sole responsibility, not on behalf of the original Licensor or any other
210
+ Contributor, and only if You agree to indemnify, defend, and hold each
211
+ Contributor harmless for any liability incurred by, or claims asserted against
212
+ such Contributor by the fact You have accepted any such warranty or additional
213
+ liability.
214
+
215
+
216
+ 10. Acceptance of the Licence
217
+
218
+ The provisions of this Licence can be accepted by clicking on
219
+ an icon “I agree” placed under the bottom of a window displaying the text of
220
+ this Licence or by affirming consent in any other similar way, in accordance
221
+ with the rules of applicable law. Clicking on that icon indicates your clear
222
+ and irrevocable acceptance of this Licence and
223
+ all of its terms and conditions.
224
+
225
+ Similarly, you irrevocably accept this Licence and
226
+ all of its terms and conditions by exercising any rights granted to You
227
+ by Article 2 of this Licence, such as the use of the Work,
228
+ the creation by You of a Derivative Work or the Distribution and/or
229
+ Communication by You of the Work or copies thereof.
230
+
231
+
232
+ 11. Information to the public
233
+
234
+ In case of any Distribution and/or Communication of the Work by means of
235
+ electronic communication by You (for example, by offering to download
236
+ the Work from a remote location) the distribution channel or media (for
237
+ example, a website) must at least provide to the public the information
238
+ requested by the applicable law regarding the Licensor, the Licence and the
239
+ way it may be accessible, concluded, stored and reproduced by the
240
+ Licensee.
241
+
242
+
243
+ 12. Termination of the Licence
244
+
245
+ The Licence and the rights granted hereunder will terminate automatically
246
+ upon any breach by the Licensee of the terms of the Licence.
247
+
248
+ Such a termination will not terminate the licences of any person who has
249
+ received the Work from the Licensee under the Licence, provided such persons
250
+ remain in full compliance with the Licence.
251
+
252
+
253
+ 13. Miscellaneous
254
+
255
+ Without prejudice of Article 9 above, the Licence represents the complete
256
+ agreement between the Parties as to the Work licensed hereunder.
257
+
258
+ If any provision of the Licence is invalid or unenforceable under applicable
259
+ law, this will not affect the validity or enforceability of the Licence as a
260
+ whole. Such provision will be construed and/or reformed so as necessary
261
+ to make it valid and enforceable.
262
+
263
+ The European Commission may publish other linguistic versions and/or new
264
+ versions of this Licence, so far this is required and reasonable, without
265
+ reducing the scope of the rights granted by the Licence.
266
+ New versions of the Licence will be published with a unique version number.
267
+
268
+ All linguistic versions of this Licence, approved by the European Commission,
269
+ have identical value. Parties can take advantage of the linguistic version
270
+ of their choice.
271
+
272
+
273
+ 14. Jurisdiction
274
+
275
+ Any litigation resulting from the interpretation of this License, arising
276
+ between the European Commission, as a Licensor, and any Licensee,
277
+ will be subject to the jurisdiction of the Court of Justice of the
278
+ European Communities, as laid down in article 238 of the Treaty establishing
279
+ the European Community.
280
+
281
+ Any litigation arising between Parties, other than the European Commission,
282
+ and resulting from the interpretation of this License, will be subject to the
283
+ exclusive jurisdiction of the competent court where the Licensor resides or
284
+ conducts its primary business.
285
+
286
+
287
+ 15. Applicable Law
288
+
289
+ This Licence shall be governed by the law of the European Union country where
290
+ the Licensor resides or has his registered office.
291
+
292
+ This licence shall be governed by the Belgian law if:
293
+
294
+ - a litigation arises between the European Commission, as a Licensor, and any
295
+ Licensee;
296
+ - the Licensor, other than the European Commission, has no residence or
297
+ registered office inside a European Union country.
298
+
299
+
300
+ ===
301
+
302
+
303
+ Appendix
304
+
305
+
306
+ “Compatible Licences” according to article 5 EUPL are:
307
+ - GNU General Public License (GNU GPL) v. 2
308
+ - Open Software License (OSL) v. 2.1, v. 3.0
309
+ - Common Public License v. 1.0
310
+ - Eclipse Public License v. 1.0
311
+ - Cecill v. 2.0
MedicApp.png ADDED
README.md CHANGED
@@ -1,3 +1,11 @@
1
- ---
2
- license: eupl-1.1
3
- ---
 
 
 
 
 
 
 
 
 
1
+ <h1 align="center">
2
+ <img src="MedicApp.png" alt="MedicAppAssets" height="200">
3
+ <br />
4
+ </h1>
5
+
6
+ <p align="center"><b>This project is licensed under the EUPL 1.1. For more details, see the <a href="LICENSE.md">LICENSE</a> file.</b></p>
7
+
8
+ <p align="center">Published for <img src="https://raw.githubusercontent.com/anythingcodes/slack-emoji-for-techies/gh-pages/emoji/tux.png" align="top" width="24" /> with :gift_heart: by anrouxel</p>
9
+
10
+ ## Authors
11
+ * Antonin Rouxel ([anrouxel](https://github.com/anrouxel))
id_to_label.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ I-Drug
2
+ I-DrugDuration
3
+ B-Drug
4
+ B-DrugForm
5
+ B-DrugQuantity
6
+ O
7
+ I-DrugFrequency
8
+ B-DrugFrequency
9
+ B-DrugDuration
model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a5d706e5f937ca39b92ab2340a9217d5c82846c552f619d509392c1f1bbf172
3
+ size 440541779
vocab.txt ADDED
The diff for this file is too large to render. See raw diff