parquet-converter
commited on
Commit
·
bb5142b
1
Parent(s):
f8bf264
Update parquet files
Browse files- .gitattributes +0 -37
- LICENSE +0 -407
- README.md +0 -50
- casename_classification/lbox_open-test.parquet +3 -0
- casename_classification/lbox_open-test2.parquet +3 -0
- casename_classification/lbox_open-train.parquet +3 -0
- casename_classification/lbox_open-validation.parquet +3 -0
- casename_classification_plus/lbox_open-test.parquet +3 -0
- casename_classification_plus/lbox_open-train.parquet +3 -0
- casename_classification_plus/lbox_open-validation.parquet +3 -0
- lbox_open.py +0 -321
- ljp_civil/lbox_open-test.parquet +3 -0
- ljp_civil/lbox_open-test2.parquet +3 -0
- ljp_civil/lbox_open-train.parquet +3 -0
- ljp_civil/lbox_open-validation.parquet +3 -0
- ljp_criminal/lbox_open-test.parquet +3 -0
- ljp_criminal/lbox_open-test2.parquet +3 -0
- ljp_criminal/lbox_open-train.parquet +3 -0
- ljp_criminal/lbox_open-validation.parquet +3 -0
- precedent_corpus/lbox_open-train-00000-of-00003.parquet +3 -0
- precedent_corpus/lbox_open-train-00001-of-00003.parquet +3 -0
- precedent_corpus/lbox_open-train-00002-of-00003.parquet +3 -0
- statute_classification/lbox_open-test.parquet +3 -0
- statute_classification/lbox_open-test2.parquet +3 -0
- statute_classification/lbox_open-train.parquet +3 -0
- statute_classification/lbox_open-validation.parquet +3 -0
- statute_classification_plus/lbox_open-test.parquet +3 -0
- statute_classification_plus/lbox_open-train.parquet +3 -0
- statute_classification_plus/lbox_open-validation.parquet +3 -0
- summarization/lbox_open-test.parquet +3 -0
- summarization/lbox_open-train.parquet +3 -0
- summarization/lbox_open-validation.parquet +3 -0
- summarization_plus/lbox_open-test.parquet +3 -0
- summarization_plus/lbox_open-train.parquet +3 -0
- summarization_plus/lbox_open-validation.parquet +3 -0
.gitattributes
DELETED
@@ -1,37 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
# Audio files - uncompressed
|
29 |
-
*.pcm filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.sam filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.raw filter=lfs diff=lfs merge=lfs -text
|
32 |
-
# Audio files - compressed
|
33 |
-
*.aac filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*.flac filter=lfs diff=lfs merge=lfs -text
|
35 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
36 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
37 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LICENSE
DELETED
@@ -1,407 +0,0 @@
|
|
1 |
-
Attribution-NonCommercial 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-NonCommercial 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-NonCommercial 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. Copyright and Similar Rights means copyright and/or similar rights
|
88 |
-
closely related to copyright including, without limitation,
|
89 |
-
performance, broadcast, sound recording, and Sui Generis Database
|
90 |
-
Rights, without regard to how the rights are labeled or
|
91 |
-
categorized. For purposes of this Public License, the rights
|
92 |
-
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
93 |
-
Rights.
|
94 |
-
d. Effective Technological Measures means those measures that, in the
|
95 |
-
absence of proper authority, may not be circumvented under laws
|
96 |
-
fulfilling obligations under Article 11 of the WIPO Copyright
|
97 |
-
Treaty adopted on December 20, 1996, and/or similar international
|
98 |
-
agreements.
|
99 |
-
|
100 |
-
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
101 |
-
any other exception or limitation to Copyright and Similar Rights
|
102 |
-
that applies to Your use of the Licensed Material.
|
103 |
-
|
104 |
-
f. Licensed Material means the artistic or literary work, database,
|
105 |
-
or other material to which the Licensor applied this Public
|
106 |
-
License.
|
107 |
-
|
108 |
-
g. Licensed Rights means the rights granted to You subject to the
|
109 |
-
terms and conditions of this Public License, which are limited to
|
110 |
-
all Copyright and Similar Rights that apply to Your use of the
|
111 |
-
Licensed Material and that the Licensor has authority to license.
|
112 |
-
|
113 |
-
h. Licensor means the individual(s) or entity(ies) granting rights
|
114 |
-
under this Public License.
|
115 |
-
|
116 |
-
i. NonCommercial means not primarily intended for or directed towards
|
117 |
-
commercial advantage or monetary compensation. For purposes of
|
118 |
-
this Public License, the exchange of the Licensed Material for
|
119 |
-
other material subject to Copyright and Similar Rights by digital
|
120 |
-
file-sharing or similar means is NonCommercial provided there is
|
121 |
-
no payment of monetary compensation in connection with the
|
122 |
-
exchange.
|
123 |
-
|
124 |
-
j. 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 |
-
k. 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 |
-
l. You means the individual or entity exercising the Licensed Rights
|
139 |
-
under this Public License. Your has a corresponding meaning.
|
140 |
-
|
141 |
-
|
142 |
-
Section 2 -- Scope.
|
143 |
-
|
144 |
-
a. License grant.
|
145 |
-
|
146 |
-
1. Subject to the terms and conditions of this Public License,
|
147 |
-
the Licensor hereby grants You a worldwide, royalty-free,
|
148 |
-
non-sublicensable, non-exclusive, irrevocable license to
|
149 |
-
exercise the Licensed Rights in the Licensed Material to:
|
150 |
-
|
151 |
-
a. reproduce and Share the Licensed Material, in whole or
|
152 |
-
in part, for NonCommercial purposes only; and
|
153 |
-
|
154 |
-
b. produce, reproduce, and Share Adapted Material for
|
155 |
-
NonCommercial purposes only.
|
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. No downstream restrictions. You may not offer or impose
|
186 |
-
any additional or different terms or conditions on, or
|
187 |
-
apply any Effective Technological Measures to, the
|
188 |
-
Licensed Material if doing so restricts exercise of the
|
189 |
-
Licensed Rights by any recipient of the Licensed
|
190 |
-
Material.
|
191 |
-
|
192 |
-
6. No endorsement. Nothing in this Public License constitutes or
|
193 |
-
may be construed as permission to assert or imply that You
|
194 |
-
are, or that Your use of the Licensed Material is, connected
|
195 |
-
with, or sponsored, endorsed, or granted official status by,
|
196 |
-
the Licensor or others designated to receive attribution as
|
197 |
-
provided in Section 3(a)(1)(A)(i).
|
198 |
-
|
199 |
-
b. Other rights.
|
200 |
-
|
201 |
-
1. Moral rights, such as the right of integrity, are not
|
202 |
-
licensed under this Public License, nor are publicity,
|
203 |
-
privacy, and/or other similar personality rights; however, to
|
204 |
-
the extent possible, the Licensor waives and/or agrees not to
|
205 |
-
assert any such rights held by the Licensor to the limited
|
206 |
-
extent necessary to allow You to exercise the Licensed
|
207 |
-
Rights, but not otherwise.
|
208 |
-
|
209 |
-
2. Patent and trademark rights are not licensed under this
|
210 |
-
Public License.
|
211 |
-
|
212 |
-
3. To the extent possible, the Licensor waives any right to
|
213 |
-
collect royalties from You for the exercise of the Licensed
|
214 |
-
Rights, whether directly or through a collecting society
|
215 |
-
under any voluntary or waivable statutory or compulsory
|
216 |
-
licensing scheme. In all other cases the Licensor expressly
|
217 |
-
reserves any right to collect such royalties, including when
|
218 |
-
the Licensed Material is used other than for NonCommercial
|
219 |
-
purposes.
|
220 |
-
|
221 |
-
|
222 |
-
Section 3 -- License Conditions.
|
223 |
-
|
224 |
-
Your exercise of the Licensed Rights is expressly made subject to the
|
225 |
-
following conditions.
|
226 |
-
|
227 |
-
a. Attribution.
|
228 |
-
|
229 |
-
1. If You Share the Licensed Material (including in modified
|
230 |
-
form), You must:
|
231 |
-
|
232 |
-
a. retain the following if it is supplied by the Licensor
|
233 |
-
with the Licensed Material:
|
234 |
-
|
235 |
-
i. identification of the creator(s) of the Licensed
|
236 |
-
Material and any others designated to receive
|
237 |
-
attribution, in any reasonable manner requested by
|
238 |
-
the Licensor (including by pseudonym if
|
239 |
-
designated);
|
240 |
-
|
241 |
-
ii. a copyright notice;
|
242 |
-
|
243 |
-
iii. a notice that refers to this Public License;
|
244 |
-
|
245 |
-
iv. a notice that refers to the disclaimer of
|
246 |
-
warranties;
|
247 |
-
|
248 |
-
v. a URI or hyperlink to the Licensed Material to the
|
249 |
-
extent reasonably practicable;
|
250 |
-
|
251 |
-
b. indicate if You modified the Licensed Material and
|
252 |
-
retain an indication of any previous modifications; and
|
253 |
-
|
254 |
-
c. indicate the Licensed Material is licensed under this
|
255 |
-
Public License, and include the text of, or the URI or
|
256 |
-
hyperlink to, this Public License.
|
257 |
-
|
258 |
-
2. You may satisfy the conditions in Section 3(a)(1) in any
|
259 |
-
reasonable manner based on the medium, means, and context in
|
260 |
-
which You Share the Licensed Material. For example, it may be
|
261 |
-
reasonable to satisfy the conditions by providing a URI or
|
262 |
-
hyperlink to a resource that includes the required
|
263 |
-
information.
|
264 |
-
|
265 |
-
3. If requested by the Licensor, You must remove any of the
|
266 |
-
information required by Section 3(a)(1)(A) to the extent
|
267 |
-
reasonably practicable.
|
268 |
-
|
269 |
-
4. If You Share Adapted Material You produce, the Adapter's
|
270 |
-
License You apply must not prevent recipients of the Adapted
|
271 |
-
Material from complying with this Public License.
|
272 |
-
|
273 |
-
|
274 |
-
Section 4 -- Sui Generis Database Rights.
|
275 |
-
|
276 |
-
Where the Licensed Rights include Sui Generis Database Rights that
|
277 |
-
apply to Your use of the Licensed Material:
|
278 |
-
|
279 |
-
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
280 |
-
to extract, reuse, reproduce, and Share all or a substantial
|
281 |
-
portion of the contents of the database for NonCommercial purposes
|
282 |
-
only;
|
283 |
-
|
284 |
-
b. if You include all or a substantial portion of the database
|
285 |
-
contents in a database in which You have Sui Generis Database
|
286 |
-
Rights, then the database in which You have Sui Generis Database
|
287 |
-
Rights (but not its individual contents) is Adapted Material; and
|
288 |
-
|
289 |
-
c. You must comply with the conditions in Section 3(a) if You Share
|
290 |
-
all or a substantial portion of the contents of the database.
|
291 |
-
|
292 |
-
For the avoidance of doubt, this Section 4 supplements and does not
|
293 |
-
replace Your obligations under this Public License where the Licensed
|
294 |
-
Rights include other Copyright and Similar Rights.
|
295 |
-
|
296 |
-
|
297 |
-
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
298 |
-
|
299 |
-
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
300 |
-
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
301 |
-
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
302 |
-
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
303 |
-
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
304 |
-
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
305 |
-
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
306 |
-
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
307 |
-
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
308 |
-
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
309 |
-
|
310 |
-
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
311 |
-
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
312 |
-
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
313 |
-
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
314 |
-
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
315 |
-
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
316 |
-
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
317 |
-
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
318 |
-
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
319 |
-
|
320 |
-
c. The disclaimer of warranties and limitation of liability provided
|
321 |
-
above shall be interpreted in a manner that, to the extent
|
322 |
-
possible, most closely approximates an absolute disclaimer and
|
323 |
-
waiver of all liability.
|
324 |
-
|
325 |
-
|
326 |
-
Section 6 -- Term and Termination.
|
327 |
-
|
328 |
-
a. This Public License applies for the term of the Copyright and
|
329 |
-
Similar Rights licensed here. However, if You fail to comply with
|
330 |
-
this Public License, then Your rights under this Public License
|
331 |
-
terminate automatically.
|
332 |
-
|
333 |
-
b. Where Your right to use the Licensed Material has terminated under
|
334 |
-
Section 6(a), it reinstates:
|
335 |
-
|
336 |
-
1. automatically as of the date the violation is cured, provided
|
337 |
-
it is cured within 30 days of Your discovery of the
|
338 |
-
violation; or
|
339 |
-
|
340 |
-
2. upon express reinstatement by the Licensor.
|
341 |
-
|
342 |
-
For the avoidance of doubt, this Section 6(b) does not affect any
|
343 |
-
right the Licensor may have to seek remedies for Your violations
|
344 |
-
of this Public License.
|
345 |
-
|
346 |
-
c. For the avoidance of doubt, the Licensor may also offer the
|
347 |
-
Licensed Material under separate terms or conditions or stop
|
348 |
-
distributing the Licensed Material at any time; however, doing so
|
349 |
-
will not terminate this Public License.
|
350 |
-
|
351 |
-
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
352 |
-
License.
|
353 |
-
|
354 |
-
|
355 |
-
Section 7 -- Other Terms and Conditions.
|
356 |
-
|
357 |
-
a. The Licensor shall not be bound by any additional or different
|
358 |
-
terms or conditions communicated by You unless expressly agreed.
|
359 |
-
|
360 |
-
b. Any arrangements, understandings, or agreements regarding the
|
361 |
-
Licensed Material not stated herein are separate from and
|
362 |
-
independent of the terms and conditions of this Public License.
|
363 |
-
|
364 |
-
|
365 |
-
Section 8 -- Interpretation.
|
366 |
-
|
367 |
-
a. For the avoidance of doubt, this Public License does not, and
|
368 |
-
shall not be interpreted to, reduce, limit, restrict, or impose
|
369 |
-
conditions on any use of the Licensed Material that could lawfully
|
370 |
-
be made without permission under this Public License.
|
371 |
-
|
372 |
-
b. To the extent possible, if any provision of this Public License is
|
373 |
-
deemed unenforceable, it shall be automatically reformed to the
|
374 |
-
minimum extent necessary to make it enforceable. If the provision
|
375 |
-
cannot be reformed, it shall be severed from this Public License
|
376 |
-
without affecting the enforceability of the remaining terms and
|
377 |
-
conditions.
|
378 |
-
|
379 |
-
c. No term or condition of this Public License will be waived and no
|
380 |
-
failure to comply consented to unless expressly agreed to by the
|
381 |
-
Licensor.
|
382 |
-
|
383 |
-
d. Nothing in this Public License constitutes or may be interpreted
|
384 |
-
as a limitation upon, or waiver of, any privileges and immunities
|
385 |
-
that apply to the Licensor or You, including from the legal
|
386 |
-
processes of any jurisdiction or authority.
|
387 |
-
|
388 |
-
=======================================================================
|
389 |
-
|
390 |
-
Creative Commons is not a party to its public
|
391 |
-
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
392 |
-
its public licenses to material it publishes and in those instances
|
393 |
-
will be considered the “Licensor.” The text of the Creative Commons
|
394 |
-
public licenses is dedicated to the public domain under the CC0 Public
|
395 |
-
Domain Dedication. Except for the limited purpose of indicating that
|
396 |
-
material is shared under a Creative Commons public license or as
|
397 |
-
otherwise permitted by the Creative Commons policies published at
|
398 |
-
creativecommons.org/policies, Creative Commons does not authorize the
|
399 |
-
use of the trademark "Creative Commons" or any other trademark or logo
|
400 |
-
of Creative Commons without its prior written consent including,
|
401 |
-
without limitation, in connection with any unauthorized modifications
|
402 |
-
to any of its public licenses or any other arrangements,
|
403 |
-
understandings, or agreements concerning use of licensed material. For
|
404 |
-
the avoidance of doubt, this paragraph does not form part of the
|
405 |
-
public licenses.
|
406 |
-
|
407 |
-
Creative Commons may be contacted at creativecommons.org.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
---
|
2 |
-
license: cc-by-nc-4.0
|
3 |
-
---
|
4 |
-
# Dataset Card for `lbox_open`
|
5 |
-
|
6 |
-
## Dataset Description
|
7 |
-
|
8 |
-
- **Homepage:** `https://lbox.kr`
|
9 |
-
- **Repository:** `https://github.com/lbox-kr/lbox_open`
|
10 |
-
- **Point of Contact:** [Wonseok Hwang](mailto:[email protected])
|
11 |
-
|
12 |
-
### Dataset Summary
|
13 |
-
|
14 |
-
A Legal AI Benchmark Dataset from Korean Legal Cases.
|
15 |
-
|
16 |
-
### Languages
|
17 |
-
|
18 |
-
Korean
|
19 |
-
|
20 |
-
### How to use
|
21 |
-
```python
|
22 |
-
from datasets import load_dataset
|
23 |
-
|
24 |
-
# casename classficiation task
|
25 |
-
data_cn = load_dataset("lbox/lbox_open", "casename_classification")
|
26 |
-
data_cn_plus = load_dataset("lbox/lbox_open", "casename_classification_plus")
|
27 |
-
|
28 |
-
# statutes classification task
|
29 |
-
data_st = load_dataset("lbox/lbox_open", "statute_classification")
|
30 |
-
data_st_plus = load_dataset("lbox/lbox_open", "statute_classification_plus")
|
31 |
-
|
32 |
-
# Legal judgement prediction tasks
|
33 |
-
data_ljp_criminal = load_dataset("lbox/lbox_open", "ljp_criminal")
|
34 |
-
data_ljp_civil = load_dataset("lbox/lbox_open", "ljp_civil")
|
35 |
-
|
36 |
-
# case summarization task
|
37 |
-
data_summ = load_dataset("lbox/lbox_open", "summarization")
|
38 |
-
data_summ_plus = load_dataset("lbox/lbox_open", "summarization_plus")
|
39 |
-
|
40 |
-
# precedent corpus
|
41 |
-
data_corpus = load_dataset("lbox/lbox_open", "precedent_corpus")
|
42 |
-
|
43 |
-
```
|
44 |
-
|
45 |
-
For more information about the dataset, please visit <https://github.com/lbox-kr/lbox_open>.
|
46 |
-
|
47 |
-
## Licensing Information
|
48 |
-
Copyright 2022-present [LBox Co. Ltd.](https://lbox.kr/)
|
49 |
-
|
50 |
-
Licensed under the [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
casename_classification/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:727bf89fa5a997fbaf5fb0c7743281a949063e8e3ec2224b5a14d987161d870d
|
3 |
+
size 743043
|
casename_classification/lbox_open-test2.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3b268bcf73286a8548c42c38f1b8b3fc44a8d2ac36153dc2c7da3fb8b334bf33
|
3 |
+
size 889521
|
casename_classification/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf8ac0418dca3d4b5e758f1bed991ecf0b8e61824188eb8324e56cc07b73ab62
|
3 |
+
size 5659019
|
casename_classification/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7c2c5d05c1cb0e39b5038b92a1e51fff33cf40821b4b722c843daeb9606f2e6e
|
3 |
+
size 738855
|
casename_classification_plus/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:995fc609d91f1a6d08053984bcfca79234047f44ada35f17e1f330a647a5253b
|
3 |
+
size 3543212
|
casename_classification_plus/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33cf00fa7e3af7a3f0d8a4b5cb3c11cbe76aa533b31f99e7d7a9c1598de74877
|
3 |
+
size 15981392
|
casename_classification_plus/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93e900e739281420b4275bd81576309be76e8dbdcbeb29d1e8ddb3b95d132e49
|
3 |
+
size 2897251
|
lbox_open.py
DELETED
@@ -1,321 +0,0 @@
|
|
1 |
-
# LBox Open
|
2 |
-
# Copyright (c) 2022-present LBox Co. Ltd.
|
3 |
-
# CC BY-NC 4.0
|
4 |
-
# 2022.10.18, Wonseok: Add casename_classification_plus, statute_classification_plus, summarization_plus datasets
|
5 |
-
|
6 |
-
import json
|
7 |
-
|
8 |
-
import datasets
|
9 |
-
|
10 |
-
_CASENAME_CLASSIFICATION_FEATURES = {
|
11 |
-
"id": datasets.Value("int64"),
|
12 |
-
"casetype": datasets.Value("string"),
|
13 |
-
"casename": datasets.Value("string"),
|
14 |
-
"facts": datasets.Value("string"),
|
15 |
-
}
|
16 |
-
|
17 |
-
_STATUTE_CLASSIFICATION_FEATURES = {
|
18 |
-
"id": datasets.Value("int64"),
|
19 |
-
"casetype": datasets.Value("string"),
|
20 |
-
"casename": datasets.Value("string"),
|
21 |
-
"statutes": datasets.features.Sequence(datasets.Value("string")),
|
22 |
-
"facts": datasets.Value("string"),
|
23 |
-
}
|
24 |
-
|
25 |
-
_LJP_CRIMINAL = {
|
26 |
-
"id": datasets.Value("int64"),
|
27 |
-
"casetype": datasets.Value("string"),
|
28 |
-
"casename": datasets.Value("string"),
|
29 |
-
"facts": datasets.Value("string"),
|
30 |
-
"reason": datasets.Value("string"),
|
31 |
-
"label": {
|
32 |
-
"text": datasets.Value("string"),
|
33 |
-
"fine_lv": datasets.Value("int64"),
|
34 |
-
"imprisonment_with_labor_lv": datasets.Value("int64"),
|
35 |
-
"imprisonment_without_labor_lv": datasets.Value("int64"),
|
36 |
-
},
|
37 |
-
"ruling": {
|
38 |
-
"text": datasets.Value("string"),
|
39 |
-
"parse": {
|
40 |
-
"fine": {
|
41 |
-
"type": datasets.Value("string"),
|
42 |
-
"unit": datasets.Value("string"),
|
43 |
-
"value": datasets.Value("int64"),
|
44 |
-
},
|
45 |
-
"imprisonment": {
|
46 |
-
"type": datasets.Value("string"),
|
47 |
-
"unit": datasets.Value("string"),
|
48 |
-
"value": datasets.Value("int64"),
|
49 |
-
},
|
50 |
-
},
|
51 |
-
},
|
52 |
-
}
|
53 |
-
|
54 |
-
_LJP_CIVIL = {
|
55 |
-
"id": datasets.Value("int64"),
|
56 |
-
"casetype": datasets.Value("string"),
|
57 |
-
"casename": datasets.Value("string"),
|
58 |
-
"facts": datasets.Value("string"),
|
59 |
-
"claim_acceptance_lv": datasets.Value("int64"),
|
60 |
-
"gist_of_claim": {
|
61 |
-
"text": datasets.Value("string"),
|
62 |
-
"money": {
|
63 |
-
"provider": datasets.Value("string"),
|
64 |
-
"taker": datasets.Value("string"),
|
65 |
-
"unit": datasets.Value("string"),
|
66 |
-
"value": datasets.Value("int64"),
|
67 |
-
},
|
68 |
-
},
|
69 |
-
"ruling": {
|
70 |
-
"text": datasets.Value("string"),
|
71 |
-
"money": {
|
72 |
-
"provider": datasets.Value("string"),
|
73 |
-
"taker": datasets.Value("string"),
|
74 |
-
"unit": datasets.Value("string"),
|
75 |
-
"value": datasets.Value("int64"),
|
76 |
-
},
|
77 |
-
"litigation_cost": datasets.Value("float32"),
|
78 |
-
},
|
79 |
-
}
|
80 |
-
|
81 |
-
_SUMMARIZATION_FEATURES = {
|
82 |
-
"id": datasets.Value("int64"),
|
83 |
-
"summary": datasets.Value("string"),
|
84 |
-
"precedent": datasets.Value("string"),
|
85 |
-
}
|
86 |
-
|
87 |
-
_PRECEDENT_CORPUS_FEATURES = {
|
88 |
-
"id": datasets.Value("int64"),
|
89 |
-
"precedent": datasets.Value("string"),
|
90 |
-
}
|
91 |
-
|
92 |
-
|
93 |
-
class LBoxOpenConfig(datasets.BuilderConfig):
|
94 |
-
"""BuilderConfig for OpenLBox."""
|
95 |
-
|
96 |
-
def __init__(
|
97 |
-
self,
|
98 |
-
features,
|
99 |
-
data_url,
|
100 |
-
citation,
|
101 |
-
url,
|
102 |
-
label_classes=("False", "True"),
|
103 |
-
**kwargs,
|
104 |
-
):
|
105 |
-
# Version history:
|
106 |
-
# 0.1.0: Initial version.
|
107 |
-
super(LBoxOpenConfig, self).__init__(
|
108 |
-
version=datasets.Version("0.2.0"), **kwargs
|
109 |
-
)
|
110 |
-
self.features = features
|
111 |
-
self.label_classes = label_classes
|
112 |
-
self.data_url = data_url
|
113 |
-
self.citation = citation
|
114 |
-
self.url = url
|
115 |
-
|
116 |
-
|
117 |
-
class LBoxOpen(datasets.GeneratorBasedBuilder):
|
118 |
-
"""The Legal AI Benchmark dataset from Korean Legal Cases."""
|
119 |
-
|
120 |
-
BUILDER_CONFIGS = [
|
121 |
-
LBoxOpenConfig(
|
122 |
-
name="casename_classification",
|
123 |
-
description="",
|
124 |
-
features=_CASENAME_CLASSIFICATION_FEATURES,
|
125 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/casename_classification/v0.1.2/",
|
126 |
-
citation="",
|
127 |
-
url="lbox.kr",
|
128 |
-
),
|
129 |
-
LBoxOpenConfig(
|
130 |
-
name="casename_classification_plus",
|
131 |
-
description="",
|
132 |
-
features=_CASENAME_CLASSIFICATION_FEATURES,
|
133 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/casename_classification/v0.1.2_plus/",
|
134 |
-
citation="",
|
135 |
-
url="lbox.kr",
|
136 |
-
),
|
137 |
-
LBoxOpenConfig(
|
138 |
-
name="statute_classification",
|
139 |
-
description="",
|
140 |
-
features=_STATUTE_CLASSIFICATION_FEATURES,
|
141 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/statute_classification/v0.1.2/",
|
142 |
-
citation="",
|
143 |
-
url="lbox.kr",
|
144 |
-
),
|
145 |
-
LBoxOpenConfig(
|
146 |
-
name="statute_classification_plus",
|
147 |
-
description="",
|
148 |
-
features=_STATUTE_CLASSIFICATION_FEATURES,
|
149 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/statute_classification/v0.1.2_plus/",
|
150 |
-
citation="",
|
151 |
-
url="lbox.kr",
|
152 |
-
),
|
153 |
-
LBoxOpenConfig(
|
154 |
-
name="ljp_criminal",
|
155 |
-
description="",
|
156 |
-
features=_LJP_CRIMINAL,
|
157 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/judgement_prediction/v0.1.2/criminal/",
|
158 |
-
citation="",
|
159 |
-
url="lbox.kr",
|
160 |
-
),
|
161 |
-
LBoxOpenConfig(
|
162 |
-
name="ljp_civil",
|
163 |
-
description="",
|
164 |
-
features=_LJP_CIVIL,
|
165 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/judgement_prediction/v0.1.2/civil/",
|
166 |
-
citation="",
|
167 |
-
url="lbox.kr",
|
168 |
-
),
|
169 |
-
LBoxOpenConfig(
|
170 |
-
name="summarization",
|
171 |
-
description="",
|
172 |
-
features=_SUMMARIZATION_FEATURES,
|
173 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/summarization/v0.1.0/",
|
174 |
-
citation="",
|
175 |
-
url="lbox.kr",
|
176 |
-
),
|
177 |
-
LBoxOpenConfig(
|
178 |
-
name="summarization_plus",
|
179 |
-
description="",
|
180 |
-
features=_SUMMARIZATION_FEATURES,
|
181 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/summarization/v0.1.0_plus/",
|
182 |
-
citation="",
|
183 |
-
url="lbox.kr",
|
184 |
-
),
|
185 |
-
LBoxOpenConfig(
|
186 |
-
name="precedent_corpus",
|
187 |
-
description="",
|
188 |
-
features=_PRECEDENT_CORPUS_FEATURES,
|
189 |
-
data_url="https://lbox-open.s3.ap-northeast-2.amazonaws.com/precedent_benchmark_dataset/case_corpus/v0.1.0/",
|
190 |
-
citation="",
|
191 |
-
url="lbox.kr",
|
192 |
-
),
|
193 |
-
]
|
194 |
-
|
195 |
-
def _info(self):
|
196 |
-
return datasets.DatasetInfo(
|
197 |
-
description="",
|
198 |
-
features=datasets.Features(self.config.features),
|
199 |
-
homepage=self.config.url,
|
200 |
-
citation="",
|
201 |
-
)
|
202 |
-
|
203 |
-
def _split_generators(self, dl_manager):
|
204 |
-
if self.config.name == "precedent_corpus":
|
205 |
-
dl_dir = {
|
206 |
-
"train": dl_manager.download_and_extract(
|
207 |
-
f"{self.config.data_url}case_corpus-150k.jsonl"
|
208 |
-
)
|
209 |
-
or "",
|
210 |
-
}
|
211 |
-
|
212 |
-
return [
|
213 |
-
datasets.SplitGenerator(
|
214 |
-
name=datasets.Split.TRAIN,
|
215 |
-
gen_kwargs={
|
216 |
-
"data_file": dl_dir["train"],
|
217 |
-
"split": datasets.Split.TRAIN,
|
218 |
-
},
|
219 |
-
)
|
220 |
-
]
|
221 |
-
|
222 |
-
elif self.config.name in [
|
223 |
-
"casename_classification",
|
224 |
-
"statute_classification",
|
225 |
-
"ljp_criminal",
|
226 |
-
"ljp_civil",
|
227 |
-
]:
|
228 |
-
dl_dir = {
|
229 |
-
"train": dl_manager.download_and_extract(
|
230 |
-
f"{self.config.data_url}train.jsonl"
|
231 |
-
)
|
232 |
-
or "",
|
233 |
-
"valid": dl_manager.download_and_extract(
|
234 |
-
f"{self.config.data_url}valid.jsonl"
|
235 |
-
)
|
236 |
-
or "",
|
237 |
-
"test": dl_manager.download_and_extract(
|
238 |
-
f"{self.config.data_url}test.jsonl"
|
239 |
-
)
|
240 |
-
or "",
|
241 |
-
"test2": dl_manager.download_and_extract(
|
242 |
-
f"{self.config.data_url}test2.jsonl"
|
243 |
-
)
|
244 |
-
or "",
|
245 |
-
}
|
246 |
-
|
247 |
-
return [
|
248 |
-
datasets.SplitGenerator(
|
249 |
-
name=datasets.Split.TRAIN,
|
250 |
-
gen_kwargs={
|
251 |
-
"data_file": dl_dir["train"],
|
252 |
-
"split": datasets.Split.TRAIN,
|
253 |
-
},
|
254 |
-
),
|
255 |
-
datasets.SplitGenerator(
|
256 |
-
name=datasets.Split.VALIDATION,
|
257 |
-
gen_kwargs={
|
258 |
-
"data_file": dl_dir["valid"],
|
259 |
-
"split": datasets.Split.VALIDATION,
|
260 |
-
},
|
261 |
-
),
|
262 |
-
datasets.SplitGenerator(
|
263 |
-
name=datasets.Split.TEST,
|
264 |
-
gen_kwargs={
|
265 |
-
"data_file": dl_dir["test"],
|
266 |
-
"split": datasets.Split.TEST,
|
267 |
-
},
|
268 |
-
),
|
269 |
-
datasets.SplitGenerator(
|
270 |
-
name="test2",
|
271 |
-
gen_kwargs={
|
272 |
-
"data_file": dl_dir["test2"],
|
273 |
-
"split": "test2",
|
274 |
-
},
|
275 |
-
),
|
276 |
-
]
|
277 |
-
else:
|
278 |
-
dl_dir = {
|
279 |
-
"train": dl_manager.download_and_extract(
|
280 |
-
f"{self.config.data_url}train.jsonl"
|
281 |
-
)
|
282 |
-
or "",
|
283 |
-
"valid": dl_manager.download_and_extract(
|
284 |
-
f"{self.config.data_url}valid.jsonl"
|
285 |
-
)
|
286 |
-
or "",
|
287 |
-
"test": dl_manager.download_and_extract(
|
288 |
-
f"{self.config.data_url}test.jsonl"
|
289 |
-
)
|
290 |
-
or "",
|
291 |
-
}
|
292 |
-
|
293 |
-
return [
|
294 |
-
datasets.SplitGenerator(
|
295 |
-
name=datasets.Split.TRAIN,
|
296 |
-
gen_kwargs={
|
297 |
-
"data_file": dl_dir["train"],
|
298 |
-
"split": datasets.Split.TRAIN,
|
299 |
-
},
|
300 |
-
),
|
301 |
-
datasets.SplitGenerator(
|
302 |
-
name=datasets.Split.VALIDATION,
|
303 |
-
gen_kwargs={
|
304 |
-
"data_file": dl_dir["valid"],
|
305 |
-
"split": datasets.Split.VALIDATION,
|
306 |
-
},
|
307 |
-
),
|
308 |
-
datasets.SplitGenerator(
|
309 |
-
name=datasets.Split.TEST,
|
310 |
-
gen_kwargs={
|
311 |
-
"data_file": dl_dir["test"],
|
312 |
-
"split": datasets.Split.TEST,
|
313 |
-
},
|
314 |
-
),
|
315 |
-
]
|
316 |
-
|
317 |
-
def _generate_examples(self, data_file, split):
|
318 |
-
with open(data_file, encoding="utf-8") as f:
|
319 |
-
for line in f:
|
320 |
-
row = json.loads(line)
|
321 |
-
yield row["id"], row
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ljp_civil/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e2dd80f38c11c285381dbad160f39fb5a4bd1feb9eaddc316626825b7d199831
|
3 |
+
size 526777
|
ljp_civil/lbox_open-test2.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:938f42e6a4008d2e04fecbf772e9ed5de9c1682848225ed5445a68d17d6da8c1
|
3 |
+
size 460130
|
ljp_civil/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b787b5c11232338d8c15e4357fb9050d95886aafef9be16f6f813338f6928003
|
3 |
+
size 4050050
|
ljp_civil/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:818f280bcb31a79d394e3c8a0bb90b0c4da9bf2af74c69e3c3a797da88302fdd
|
3 |
+
size 503857
|
ljp_criminal/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56b0869cb6c1c3a3d7906965b48c482d7fbc25bec99f74b98297bb3ee9ab032f
|
3 |
+
size 697714
|
ljp_criminal/lbox_open-test2.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bed851a8aa5a8465c5a8f250e4b17e37285e38b14686b7758faeb16c250f1f8b
|
3 |
+
size 589932
|
ljp_criminal/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c5bfe9b7a0dcf69ac6a65179372ba5734a001b4487f157554fc2f8520425f57
|
3 |
+
size 5489192
|
ljp_criminal/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:efd576d293440960fab6fbdff2bd5a0156ce3be507b263aeab1ccc5491b095d0
|
3 |
+
size 718649
|
precedent_corpus/lbox_open-train-00000-of-00003.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:98fedad15d5eddc5e874cb105774c0410cc3fc5b6331b81054f555d0e514106f
|
3 |
+
size 238212083
|
precedent_corpus/lbox_open-train-00001-of-00003.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:77081d5327c8aba518fe800b1b9b606a166afc74d4e536499ce408f2689829c4
|
3 |
+
size 237587799
|
precedent_corpus/lbox_open-train-00002-of-00003.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aea99ef1fd85f1af33193a2d331cf4f9faf40dd8a244b3725ee07d8846c281c1
|
3 |
+
size 66279140
|
statute_classification/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6611dddccafe379d738a6523f387d3725f46e28f191b9efcc9b7f08cd5c8d2dd
|
3 |
+
size 160915
|
statute_classification/lbox_open-test2.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3026d87f8b6e47ab900b7f0b6a3000e3704bcdd4c6ae696098e7a7cc78dd38be
|
3 |
+
size 270294
|
statute_classification/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c7c69d6230bb71f2a08112284864ca231f5c6d733a653890cfdc42bf49e23c61
|
3 |
+
size 1133704
|
statute_classification/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3652ed040d89984835fe8b955742b316a35ea31e3e4e1b47ad62fb6e6bb8522
|
3 |
+
size 173113
|
statute_classification_plus/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7db9b49fdc311de947e157d3a89fba0acdf894249eadfc115d1375f467bacc03
|
3 |
+
size 1265643
|
statute_classification_plus/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27b2a51e64612d6e6a44b208e1c3b34b1b0ab58ce18885e749f624a20ae51a36
|
3 |
+
size 6886479
|
statute_classification_plus/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a5426576171590acdec7c4b345a7320f8563623a38b0102d6347c6c7223d63c
|
3 |
+
size 1329222
|
summarization/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ccce54935001696604ae8b75d60eec5682d015293001500a4c7d36bd8bc92444
|
3 |
+
size 2960136
|
summarization/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9fb35d28eb414fede12dd4f03e483365d933f17743b220566124815a6494122
|
3 |
+
size 23790970
|
summarization/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e28b14b35cd93b52e0fe90cd3618a9f0f86404cd7846405fce405d42266d2fc
|
3 |
+
size 2971361
|
summarization_plus/lbox_open-test.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:233b93d5e2abe724f392e74a3c9d6c07b39a348eae267774dc04926a203fb5f2
|
3 |
+
size 19046387
|
summarization_plus/lbox_open-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:74f62056b3a8bcdf2e6d93bf038c81cca7d464968fd1ce9b12d597c4e7f40700
|
3 |
+
size 153302884
|
summarization_plus/lbox_open-validation.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:57735fc0bcb5975b4de2b074a9ee3c4657866a120b2d475ad7429a4bf858a6d8
|
3 |
+
size 19511044
|