aya-se commited on
Commit
ef89ecf
·
1 Parent(s): 3cff5d9

Update license

Browse files
Files changed (5) hide show
  1. APACHE_LICENSE_VERSION_2.0.md +0 -201
  2. CC_BY-SA_4.0.md +418 -0
  3. Notice +2 -0
  4. README.md +36 -6
  5. README_ja.md +31 -3
APACHE_LICENSE_VERSION_2.0.md DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CC_BY-SA_4.0.md ADDED
@@ -0,0 +1,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ Section 1 -- Definitions.
71
+
72
+ a. Adapted Material means material subject to Copyright and Similar
73
+ Rights that is derived from or based upon the Licensed Material
74
+ and in which the Licensed Material is translated, altered,
75
+ arranged, transformed, or otherwise modified in a manner requiring
76
+ permission under the Copyright and Similar Rights held by the
77
+ Licensor. For purposes of this Public License, where the Licensed
78
+ Material is a musical work, performance, or sound recording,
79
+ Adapted Material is always produced where the Licensed Material is
80
+ synched in timed relation with a moving image.
81
+
82
+ b. Adapter's License means the license You apply to Your Copyright
83
+ and Similar Rights in Your contributions to Adapted Material in
84
+ accordance with the terms and conditions of this Public License.
85
+
86
+ c. BY-SA Compatible License means a license listed at
87
+ creativecommons.org/compatiblelicenses, approved by Creative
88
+ Commons as essentially the equivalent of this Public License.
89
+
90
+ d. Copyright and Similar Rights means copyright and/or similar rights
91
+ closely related to copyright including, without limitation,
92
+ performance, broadcast, sound recording, and Sui Generis Database
93
+ Rights, without regard to how the rights are labeled or
94
+ categorized. For purposes of this Public License, the rights
95
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
96
+ Rights.
97
+
98
+ e. Effective Technological Measures means those measures that, in the
99
+ absence of proper authority, may not be circumvented under laws
100
+ fulfilling obligations under Article 11 of the WIPO Copyright
101
+ Treaty adopted on December 20, 1996, and/or similar international
102
+ agreements.
103
+
104
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
105
+ any other exception or limitation to Copyright and Similar Rights
106
+ that applies to Your use of the Licensed Material.
107
+
108
+ g. License Elements means the license attributes listed in the name
109
+ of a Creative Commons Public License. The License Elements of this
110
+ Public License are Attribution and ShareAlike.
111
+
112
+ h. Licensed Material means the artistic or literary work, database,
113
+ or other material to which the Licensor applied this Public
114
+ License.
115
+
116
+ i. Licensed Rights means the rights granted to You subject to the
117
+ terms and conditions of this Public License, which are limited to
118
+ all Copyright and Similar Rights that apply to Your use of the
119
+ Licensed Material and that the Licensor has authority to license.
120
+
121
+ j. Licensor means the individual(s) or entity(ies) granting rights
122
+ under this Public License.
123
+
124
+ k. Share means to provide material to the public by any means or
125
+ process that requires permission under the Licensed Rights, such
126
+ as reproduction, public display, public performance, distribution,
127
+ dissemination, communication, or importation, and to make material
128
+ available to the public including in ways that members of the
129
+ public may access the material from a place and at a time
130
+ individually chosen by them.
131
+
132
+ l. Sui Generis Database Rights means rights other than copyright
133
+ resulting from Directive 96/9/EC of the European Parliament and of
134
+ the Council of 11 March 1996 on the legal protection of databases,
135
+ as amended and/or succeeded, as well as other essentially
136
+ equivalent rights anywhere in the world.
137
+
138
+ m. You means the individual or entity exercising the Licensed Rights
139
+ under this Public License. Your has a corresponding meaning.
140
+
141
+ Section 2 -- Scope.
142
+
143
+ a. License grant.
144
+
145
+ 1. Subject to the terms and conditions of this Public License,
146
+ the Licensor hereby grants You a worldwide, royalty-free,
147
+ non-sublicensable, non-exclusive, irrevocable license to
148
+ exercise the Licensed Rights in the Licensed Material to:
149
+
150
+ a. reproduce and Share the Licensed Material, in whole or
151
+ in part; and
152
+
153
+ b. produce, reproduce, and Share Adapted Material.
154
+
155
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
156
+ Exceptions and Limitations apply to Your use, this Public
157
+ License does not apply, and You do not need to comply with
158
+ its terms and conditions.
159
+
160
+ 3. Term. The term of this Public License is specified in Section
161
+ 6(a).
162
+
163
+ 4. Media and formats; technical modifications allowed. The
164
+ Licensor authorizes You to exercise the Licensed Rights in
165
+ all media and formats whether now known or hereafter created,
166
+ and to make technical modifications necessary to do so. The
167
+ Licensor waives and/or agrees not to assert any right or
168
+ authority to forbid You from making technical modifications
169
+ necessary to exercise the Licensed Rights, including
170
+ technical modifications necessary to circumvent Effective
171
+ Technological Measures. For purposes of this Public License,
172
+ simply making modifications authorized by this Section 2(a)
173
+ (4) never produces Adapted Material.
174
+
175
+ 5. Downstream recipients.
176
+
177
+ a. Offer from the Licensor -- Licensed Material. Every
178
+ recipient of the Licensed Material automatically
179
+ receives an offer from the Licensor to exercise the
180
+ Licensed Rights under the terms and conditions of this
181
+ Public License.
182
+
183
+ b. Additional offer from the Licensor -- Adapted Material.
184
+ Every recipient of Adapted Material from You
185
+ automatically receives an offer from the Licensor to
186
+ exercise the Licensed Rights in the Adapted Material
187
+ under the conditions of the Adapter's License You apply.
188
+
189
+ c. No downstream restrictions. You may not offer or impose
190
+ any additional or different terms or conditions on, or
191
+ apply any Effective Technological Measures to, the
192
+ Licensed Material if doing so restricts exercise of the
193
+ Licensed Rights by any recipient of the Licensed
194
+ Material.
195
+
196
+ 6. No endorsement. Nothing in this Public License constitutes or
197
+ may be construed as permission to assert or imply that You
198
+ are, or that Your use of the Licensed Material is, connected
199
+ with, or sponsored, endorsed, or granted official status by,
200
+ the Licensor or others designated to receive attribution as
201
+ provided in Section 3(a)(1)(A)(i).
202
+
203
+ b. Other rights.
204
+
205
+ 1. Moral rights, such as the right of integrity, are not
206
+ licensed under this Public License, nor are publicity,
207
+ privacy, and/or other similar personality rights; however, to
208
+ the extent possible, the Licensor waives and/or agrees not to
209
+ assert any such rights held by the Licensor to the limited
210
+ extent necessary to allow You to exercise the Licensed
211
+ Rights, but not otherwise.
212
+
213
+ 2. Patent and trademark rights are not licensed under this
214
+ Public License.
215
+
216
+ 3. To the extent possible, the Licensor waives any right to
217
+ collect royalties from You for the exercise of the Licensed
218
+ Rights, whether directly or through a collecting society
219
+ under any voluntary or waivable statutory or compulsory
220
+ licensing scheme. In all other cases the Licensor expressly
221
+ reserves any right to collect such royalties.
222
+
223
+ Section 3 -- License Conditions.
224
+
225
+ Your exercise of the Licensed Rights is expressly made subject to the
226
+ following conditions.
227
+
228
+ a. Attribution.
229
+
230
+ 1. If You Share the Licensed Material (including in modified
231
+ form), You must:
232
+
233
+ a. retain the following if it is supplied by the Licensor
234
+ with the Licensed Material:
235
+
236
+ i. identification of the creator(s) of the Licensed
237
+ Material and any others designated to receive
238
+ attribution, in any reasonable manner requested by
239
+ the Licensor (including by pseudonym if
240
+ designated);
241
+
242
+ ii. a copyright notice;
243
+
244
+ iii. a notice that refers to this Public License;
245
+
246
+ iv. a notice that refers to the disclaimer of
247
+ warranties;
248
+
249
+ v. a URI or hyperlink to the Licensed Material to the
250
+ extent reasonably practicable;
251
+
252
+ b. indicate if You modified the Licensed Material and
253
+ retain an indication of any previous modifications; and
254
+
255
+ c. indicate the Licensed Material is licensed under this
256
+ Public License, and include the text of, or the URI or
257
+ hyperlink to, this Public License.
258
+
259
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
260
+ reasonable manner based on the medium, means, and context in
261
+ which You Share the Licensed Material. For example, it may be
262
+ reasonable to satisfy the conditions by providing a URI or
263
+ hyperlink to a resource that includes the required
264
+ information.
265
+
266
+ 3. If requested by the Licensor, You must remove any of the
267
+ information required by Section 3(a)(1)(A) to the extent
268
+ reasonably practicable.
269
+
270
+ b. ShareAlike.
271
+
272
+ In addition to the conditions in Section 3(a), if You Share
273
+ Adapted Material You produce, the following conditions also apply.
274
+
275
+ 1. The Adapter's License You apply must be a Creative Commons
276
+ license with the same License Elements, this version or
277
+ later, or a BY-SA Compatible License.
278
+
279
+ 2. You must include the text of, or the URI or hyperlink to, the
280
+ Adapter's License You apply. You may satisfy this condition
281
+ in any reasonable manner based on the medium, means, and
282
+ context in which You Share Adapted Material.
283
+
284
+ 3. You may not offer or impose any additional or different terms
285
+ or conditions on, or apply any Effective Technological
286
+ Measures to, Adapted Material that restrict exercise of the
287
+ rights granted under the Adapter's License You apply.
288
+
289
+ Section 4 -- Sui Generis Database Rights.
290
+
291
+ Where the Licensed Rights include Sui Generis Database Rights that
292
+ apply to Your use of the Licensed Material:
293
+
294
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
295
+ to extract, reuse, reproduce, and Share all or a substantial
296
+ portion of the contents of the database;
297
+
298
+ b. if You include all or a substantial portion of the database
299
+ contents in a database in which You have Sui Generis Database
300
+ Rights, then the database in which You have Sui Generis Database
301
+ Rights (but not its individual contents) is Adapted Material,
302
+ including for purposes of Section 3(b); and
303
+
304
+ c. You must comply with the conditions in Section 3(a) if You Share
305
+ all or a substantial portion of the contents of the database.
306
+
307
+ For the avoidance of doubt, this Section 4 supplements and does not
308
+ replace Your obligations under this Public License where the Licensed
309
+ Rights include other Copyright and Similar Rights.
310
+
311
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
312
+
313
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
314
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
315
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
316
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
317
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
318
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
319
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
320
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
321
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
322
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
323
+
324
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
325
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
326
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
327
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
328
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
329
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
330
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
331
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
332
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
333
+
334
+ c. The disclaimer of warranties and limitation of liability provided
335
+ above shall be interpreted in a manner that, to the extent
336
+ possible, most closely approximates an absolute disclaimer and
337
+ waiver of all liability.
338
+
339
+ Section 6 -- Term and Termination.
340
+
341
+ a. This Public License applies for the term of the Copyright and
342
+ Similar Rights licensed here. However, if You fail to comply with
343
+ this Public License, then Your rights under this Public License
344
+ terminate automatically.
345
+
346
+ b. Where Your right to use the Licensed Material has terminated under
347
+ Section 6(a), it reinstates:
348
+
349
+ 1. automatically as of the date the violation is cured, provided
350
+ it is cured within 30 days of Your discovery of the
351
+ violation; or
352
+
353
+ 2. upon express reinstatement by the Licensor.
354
+
355
+ For the avoidance of doubt, this Section 6(b) does not affect any
356
+ right the Licensor may have to seek remedies for Your violations
357
+ of this Public License.
358
+
359
+ c. For the avoidance of doubt, the Licensor may also offer the
360
+ Licensed Material under separate terms or conditions or stop
361
+ distributing the Licensed Material at any time; however, doing so
362
+ will not terminate this Public License.
363
+
364
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
365
+ License.
366
+
367
+ Section 7 -- Other Terms and Conditions.
368
+
369
+ a. The Licensor shall not be bound by any additional or different
370
+ terms or conditions communicated by You unless expressly agreed.
371
+
372
+ b. Any arrangements, understandings, or agreements regarding the
373
+ Licensed Material not stated herein are separate from and
374
+ independent of the terms and conditions of this Public License.
375
+
376
+ Section 8 -- Interpretation.
377
+
378
+ a. For the avoidance of doubt, this Public License does not, and
379
+ shall not be interpreted to, reduce, limit, restrict, or impose
380
+ conditions on any use of the Licensed Material that could lawfully
381
+ be made without permission under this Public License.
382
+
383
+ b. To the extent possible, if any provision of this Public License is
384
+ deemed unenforceable, it shall be automatically reformed to the
385
+ minimum extent necessary to make it enforceable. If the provision
386
+ cannot be reformed, it shall be severed from this Public License
387
+ without affecting the enforceability of the remaining terms and
388
+ conditions.
389
+
390
+ c. No term or condition of this Public License will be waived and no
391
+ failure to comply consented to unless expressly agreed to by the
392
+ Licensor.
393
+
394
+ d. Nothing in this Public License constitutes or may be interpreted
395
+ as a limitation upon, or waiver of, any privileges and immunities
396
+ that apply to the Licensor or You, including from the legal
397
+ processes of any jurisdiction or authority.
398
+
399
+ =======================================================================
400
+
401
+ Creative Commons is not a party to its public
402
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
403
+ its public licenses to material it publishes and in those instances
404
+ will be considered the “Licensor.” The text of the Creative Commons
405
+ public licenses is dedicated to the public domain under the CC0 Public
406
+ Domain Dedication. Except for the limited purpose of indicating that
407
+ material is shared under a Creative Commons public license or as
408
+ otherwise permitted by the Creative Commons policies published at
409
+ creativecommons.org/policies, Creative Commons does not authorize the
410
+ use of the trademark "Creative Commons" or any other trademark or logo
411
+ of Creative Commons without its prior written consent including,
412
+ without limitation, in connection with any unauthorized modifications
413
+ to any of its public licenses or any other arrangements,
414
+ understandings, or agreements concerning use of licensed material. For
415
+ the avoidance of doubt, this paragraph does not form part of the
416
+ public licenses.
417
+
418
+ Creative Commons may be contacted at creativecommons.org.
Notice ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.
2
+ Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms
README.md CHANGED
@@ -17,14 +17,22 @@ library_name: fasttext
17
 
18
  This repository contains fastText classifiers for judging the educational value of Japanese web pages. It includes two types of classifiers:
19
 
20
- 1. **Wiki-based classifier**: trained on Japanese Wikipedia text from academic categories. This classifier is released under the [Apache-2.0 License](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/APACHE_LICENSE_VERSION_2.0.md).
21
- 2. **LLM-based classifier**: trained on annotations provided by an LLM, governed by the license applicable to the underlying LLM used for annotation ([Llama 3.1 Community License Agreement](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/LLAMA_3) or [Gemma Terms of Use](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/GEMMA_TERMS_OF_USE.md)).
22
 
23
- These classifiers were developed as part of a quality-filtering process for Swallow Corpus Version 2, used in the training of the [Llama 3.1 Swallow](https://huggingface.co/collections/tokyotech-llm/llama-31-swallow-66fd4f7da32705cadd1d5bc6) series. Our ablation experiments have shown that applying a filter based on the classifier’s scores improved the LLM’s ability related to Japanese knowledge.
 
 
 
 
24
 
25
  ### How to use
26
 
27
- The Wiki-based classifier outputs a probability between 0 and 1, indicating how likely a given document resembles Wikipedia content. On the other hand, the LLM-based classifier predicts which of the four labels (0, 1, 2, or 3) the educational score of a given document belongs to, treating it as a four-class classification problem. The expected value of the score (ranging from 0 to 3), based on the predicted probabilities for each label, can be considered the final score.
 
 
 
 
28
 
29
  ```python
30
  from huggingface_hub import hf_hub_download
@@ -53,9 +61,31 @@ edu_score = sum([int(label[-1]) * prob for label, prob in zip(res[0], res[1])])
53
 
54
  ### Best practice
55
 
56
- If you aim to assign appropriate ranked scores to a wide range of documents, it is recommended to use the LLM-based classifier. The Wiki-based classifier tends to assign scores close to 0 for most documents, making it specialized for detecting the few documents that resemble Wikipedia. In contrast, the LLM-based classifier can provide grading based on a broader definition of educational value.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
- ## How to cite
59
 
60
  ```bibtex
61
  @inproceedings{hattori-2025-swallow-v2,
 
17
 
18
  This repository contains fastText classifiers for judging the educational value of Japanese web pages. It includes two types of classifiers:
19
 
20
+ 1. **Wiki-based classifier**: trained on Japanese Wikipedia text in academic categories.
21
+ 2. **LLM-based classifier**: trained on annotations generated by LLMs.
22
 
23
+ The Wiki-based classifier is distributed under the [CC BY-SA 4.0](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/CC_BY-SA_4.0.md) license, while the LLM-based classifier is distributed under the license of the LLM used for annotation ([Llama 3.1 Community License Agreement](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/LLAMA_3.1_COMMUNITY_LICENSE_AGREEMENT.md) or [Gemma Terms of Use](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/GEMMA_TERMS_OF_USE.md)).
24
+
25
+ These classifiers were developed as part of a quality-filtering process for the \*Swallow Corpus Version 2, which was used to train the [Llama 3.1 Swallow](https://huggingface.co/collections/tokyotech-llm/llama-31-swallow-66fd4f7da32705cadd1d5bc6) series. Our ablation experiments have shown that applying a filter based on the classifier’s scores improved the LLM’s ability related to Japanese knowledge.
26
+
27
+ \* A large Japanese web corpus extracted from Common Crawl
28
 
29
  ### How to use
30
 
31
+ The Wiki-based classifier outputs a probability between 0 and 1, indicating how likely a given document resembles Wikipedia content. On the other hand, the LLM-based classifier predicts which of the four labels (0, 1, 2, or 3) the educational score of a given document belongs to, treating it as a 4-class classification problem. The expected value of the score (ranging from 0 to 3), based on the predicted probabilities for each label, can be considered the final score.
32
+
33
+ ```bash
34
+ pip install numpy==1.26.4 fasttext
35
+ ```
36
 
37
  ```python
38
  from huggingface_hub import hf_hub_download
 
61
 
62
  ### Best practice
63
 
64
+ In our research, we have demonstrated that both classifiers are effective. However, we recommend using the **LLM-based classifier** if you want to assign appropriate ranking scores to a broader range of documents. The Wiki-based classifier is specialized in detecting certain useful documents and tends to assign scores close to 0 for most documents. In contrast, the LLM-based classifier provides scoring based on a more general definition of educational value.
65
+
66
+ ## Training
67
+
68
+ Both classifiers were trained using fastText with 20 epochs on the training data. Character n-grams $(n=2,3)$ were used as features. Word n-grams were not applied as they did not contribute to improve accuracy.
69
+
70
+ ### Wiki-based Classifier
71
+
72
+ We built this classifier by treating Wikipedia articles as positive examples of educational documents. Since not all articles, such as those about individuals, are necessarily “educational”, we extracted 37,999 Japanese Wikipedia articles from academic categories as positive examples for training data. For the negative examples, we randomly sampled 37,999 documents from the Swallow Corpus Version 2.
73
+
74
+ ### LLM-based Classifier
75
+
76
+ Inspired by [FineWeb-Edu](https://huggingface.co/HuggingFaceFW/fineweb-edu-classifier), we constructed the classifier through the following steps:
77
+
78
+ 1. Use 200,000 documents randomly extracted from the Swallow Corpus Version 2 and an additional 31,059 web articles that were manually selected.
79
+ 2. Evaluate the educational value of the documents from step 1 using [Llama 3.1 70B Instruct](https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct) (or [Gemma 2 27B IT](https://huggingface.co/google/gemma-2-27b-it)) and a [custom prompt](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/utils/prompt.md). The evaluation is based on three criteria: (1) Whether the topic is highly academic. (2) Whether it provides deep insights or discussions. (3) Whether it is easy to understand for a general audience. The educational value is scored on a 3-point scale.
80
+ 3. Train a fastText classifier using the automatically scored documents from step 2 as training data. The classifier predicts the educational score as one of four classes (0, 1, 2, or 3).
81
+
82
+ ## Acknowledgments
83
+
84
+ This research is based on results obtained from a project, JPNP18002, commissioned by the New Energy and Industrial Technology Development Organization (NEDO). In addition, the experiments of continual pre-training of LLMs was supported by the “Support Program for Building Large Language Models” of the AI Bridging Cloud Infrastructure (ABCI) developed and operated by the National Institute of Advanced Industrial Science and Technology (AIST). This research is based on results obtained from AIST policy-based budget project "R&D on Generative AI Foundation Models for the Physical Domain".
85
+
86
+ ## Citation
87
 
88
+ (Japanese only)
89
 
90
  ```bibtex
91
  @inproceedings{hattori-2025-swallow-v2,
README_ja.md CHANGED
@@ -4,14 +4,20 @@
4
 
5
  **注意**:日本語でのみ動作します。英語やそれ以外の言語での品質は保証しません。
6
 
7
- 日本語ウェブページの教育的価値を判定する fastText 分類器です。本リポジトリには学術カテゴリに属する日本語 Wikipedia テキストを元に訓練された分類器(Wiki-based classifier)と、LLM によるアノテーションを元に訓練された分類器(LLM-based classifier)が含まれます。前者には [Apache-2.0 ライセンス](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/APACHE_LICENSE_VERSION_2.0.md)、後者にはアノテーションに使用された LLM に応じたライセンス([Llama 3.1 Community License Agreement](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/LLAMA_3.1_COMMUNITY_LICENSE_AGREEMENT.md)、[Gemma Terms of Use](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/GEMMA_TERMS_OF_USE.md))が適用されます。
8
 
9
- これらの分類器は[Llama 3.1 Swallow](https://huggingface.co/collections/tokyotech-llm/llama-31-swallow-66fd4f7da32705cadd1d5bc6)シリーズの訓練に用いられた Swallow Corpus Version 2 の品質フィルタリングの一環として開発されました。Ablation 実験では、分類器のスコアに基づくフィルタリングの適用により、LLM の日本語知識が向上することを確認しました。
 
 
10
 
11
  ### 使用法
12
 
13
  Wiki-based classifier は与えられた文書が Wikipedia らしいかどうかを 0〜1 の確率で出力します。一方、LLM-based classifier は与えられた文書の教育的スコアが 0、1、2、3 のいずれに属するかどうかを 4 ラベル分類問題として予測します。各ラベルの予測確率に基づくスコアの期待値(0〜3)を最終的なスコアとして用いることができます。
14
 
 
 
 
 
15
  ```python
16
  from huggingface_hub import hf_hub_download
17
  import fasttext
@@ -39,10 +45,32 @@ edu_score = sum([int(label[-1]) * prob for label, prob in zip(res[0], res[1])])
39
 
40
  ### ベストプラクティス
41
 
42
- 広範な文書に適切な序列のスコアを付与したい場合、LLM-based classifier の使用を推奨します。Wiki-based classifier はほとんどの文書に 0 付近のスコアを付与する傾向にあるため、Wikipedia らしいわずかな文書の検出に特化しています。一方、LLM-based classifier はより一般的な教育的価値の定義に基づいた採点をすることができます。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  ## 引用
45
 
 
 
46
  ```bibtex
47
  @inproceedings{hattori-2025-swallow-v2,
48
  author = {服部 翔 and 岡崎 直観 and 水木 栄 and 藤井 一喜 and 中村 泰士 and 大井 聖也 and 塩谷 泰平 and 齋藤 幸史郎 and Youmi Ma and 前田 航希 and 岡本 拓己 and 石田 茂樹 and 横田 理央 and 高村 大也},
 
4
 
5
  **注意**:日本語でのみ動作します。英語やそれ以外の言語での品質は保証しません。
6
 
7
+ 日本語ウェブページの教育的価値を判定する fastText 分類器です。本リポジトリには学術カテゴリに属する日本語 Wikipedia テキストを元に訓練された分類器(**Wiki-based classifier**)と、LLM によるアノテーションを元に訓練された分類器(**LLM-based classifier**)が含まれます。前者には[CC BY-SA 4.0](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/CC_BY-SA_4.0.md)、後者にはアノテーションに使用された LLM に応じたライセンス([Llama 3.1 Community License Agreement](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/LLAMA_3.1_COMMUNITY_LICENSE_AGREEMENT.md)、[Gemma Terms of Use](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/GEMMA_TERMS_OF_USE.md))が適用されます。
8
 
9
+ これらの分類器は、[Llama 3.1 Swallow](https://huggingface.co/collections/tokyotech-llm/llama-31-swallow-66fd4f7da32705cadd1d5bc6)シリーズの訓練に用いられた \*Swallow コーパス v2 の品質フィルタリングの一環として開発されました。Ablation 実験では、分類器のスコアに基づくフィルタリングの適用により、同等の計算規模の学習で、より効果的に LLM の日本語知識が向上することを確認しました。
10
+
11
+ \* Common Crawl 由来の大規模日本語コーパス
12
 
13
  ### 使用法
14
 
15
  Wiki-based classifier は与えられた文書が Wikipedia らしいかどうかを 0〜1 の確率で出力します。一方、LLM-based classifier は与えられた文書の教育的スコアが 0、1、2、3 のいずれに属するかどうかを 4 ラベル分類問題として予測します。各ラベルの予測確率に基づくスコアの期待値(0〜3)を最終的なスコアとして用いることができます。
16
 
17
+ ```bash
18
+ pip install numpy==1.26.4 fasttext
19
+ ```
20
+
21
  ```python
22
  from huggingface_hub import hf_hub_download
23
  import fasttext
 
45
 
46
  ### ベストプラクティス
47
 
48
+ 研究では、どちらの分類器も有効であることを確認していますが、より広範な文書に適切な序列のスコアを付与したい場合には、LLM-based classifier の使用を推奨します。Wiki-based classifier は一部の有用な文書の検出に特化しており、ほとんどの文書には 0 付近のスコアを付与する傾向にあります。一方、LLM-based classifier はより一般的な教育的価値の定義に基づいた採点をすることができます。
49
+
50
+ ## 訓練
51
+
52
+ いずれの分類器も、fastText で訓練データを 20 エポック学習しました。文字 n-gram $(n=2,3)$を特徴量に用いました。単語 n-gram は精度向上に繋がらなかったため、採用しませんでした。
53
+
54
+ ### Wiki-based classifier
55
+
56
+ Wikipedia 記事を教育的な文書の正例と見なし、分類器を構築しました。人物に関する記事など、必ずしも教養的とは言えない記事もあるため、学術分野のカテゴリに属する日本語 Wikipedia 記事 37,999 件を抽出し、訓練データの正例と��ました。また、負例は Swallow コーパス v2 からランダムにサンプリングした文書 37,999 件としました。
57
+
58
+ ### LLM-based classifier
59
+
60
+ [FineWeb-Edu](https://huggingface.co/HuggingFaceFW/fineweb-edu-classifier)を参考に、以下の手順で構築しました。
61
+
62
+ 1. Swallow Corpus Version 2 からランダムに抽出した 20 万件の文書と、独自に選定したウェブ記事 31,059 件を訓練データとする。
63
+ 2. 1.の文書に対して、[Llama 3.1 70B Instruct](https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct)(もしくは[Gemma 2 27B IT](https://huggingface.co/google/gemma-2-27b-it))と[プロンプト](https://huggingface.co/tokyotech-llm/edu-classifier/blob/main/utils/prompt.md)を用いて、「高度に学術的なトピックか」「深い洞察や議論を提供しているか」「一般向けに分かりやすいか」の 3 つの基準で文書の教育的価値を採点する(3 点満点)。
64
+ 3. 2.で自動採点された文書を訓練データとして、fastText で教育的スコアの点数(0、1、2、3)を予測する 4 クラス分類器を訓練する。
65
+
66
+ ## 謝辞
67
+
68
+ この成果は、国立研究開発法人新エネルギー・産業技術総合開発機構(NEDO)の委託業務(JPNP18002)の結果得られたものです。また、LLM の継続事前学習の実験では、国立研究開発法人産業技術総合研究所が構築・運用する AI 橋渡しクラウド(ABCI: AI Bridging Cloud Infrastructure)の「大規模言語モデル構築支援プログラム」の支援を受けました。この成果は、産総研政策予算プロジェクト「フィジカル領域の生成 AI 基盤モデルに関する研究開発」の結果得られました。
69
 
70
  ## 引用
71
 
72
+ (日本語のみ)
73
+
74
  ```bibtex
75
  @inproceedings{hattori-2025-swallow-v2,
76
  author = {服部 翔 and 岡崎 直観 and 水木 栄 and 藤井 一喜 and 中村 泰士 and 大井 聖也 and 塩谷 泰平 and 齋藤 幸史郎 and Youmi Ma and 前田 航希 and 岡本 拓己 and 石田 茂樹 and 横田 理央 and 高村 大也},