BillSum/{test-00000-of-00001.parquet → test.jsonl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4dc083049f804509b3a2cd77cb2bcb8455a3fd7422713a45f73e29aa0ac81a96
3
- size 13914759
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b7cd0389df1f14fe157af244b83a373d18412cca5227782acb6965854a7f4ac
3
+ size 31377309
BillSum/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11f1e6cbd0edb49886c8081dda33badc5358f712f0ec999fdfc8f8e4df2a7471
3
+ size 182367536
BillSum/train-00000-of-00001.parquet → EurLexSum/test.jsonl RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ffd2fc816f84fea4820acc66f124e3a459406ed70b43bd77fbaa0deee7792894
3
- size 80998581
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c58979d2fc5e7d18d27ea4634f63237a8aaa74a082d470b3060eb63f22e04e19
3
+ size 24161641
EurLexSum/{test-00000-of-00001.parquet → train.jsonl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e8dbad7788d00c263bd046473f171c2111de26666885f32075c3ab4c65192ae7
3
- size 9888002
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec809732098909442c9e76469b7c2120075fb9653e0ac2cf69d0dacb7d80f8e3
3
+ size 94194141
EurLexSum/{train-00000-of-00001.parquet → validation.jsonl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e1965841114b756c885b8c4ec97734fdb8ca16a67d13a3e8303e5280014e12f2
3
- size 36653551
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ed351294b6451b83dc81ec7abe0f6118119a7a08601227234bebe21289df4a0
3
+ size 23906930
EurLexSum/validation-00000-of-00001.parquet → MultiLexSum/test.jsonl RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:460942482cf53c6a8763b0504c5cc485423f5f84e0bef903182878c8edcb632c
3
- size 9588352
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e1d21fe09a9a5901a78b1ab5a70cc89cb5813597f579dbd23fd84c61f7a5566
3
+ size 3097934
MultiLexSum/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:61e43232fb1b41784461608b3ef90f0b26334be64542609a6863c4fd1c368aa0
3
- size 5748170
 
 
 
 
MultiLexSum/train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f9f823b0653c97f694524b736390f664f5713529fb0bfce76eb116c10e80afe
3
+ size 11595929
MultiLexSum/validation-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:32de1a21537f2c3ba0f3e9b5ab824754ac011b5d56a0b96e6f232ef38c58c4a2
3
- size 828912
 
 
 
 
MultiLexSum/{test-00000-of-00001.parquet → validation.jsonl} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1107d11403e1d04ecb476931cbddb9a4a5fbaba93d243d7d2cc8795c1cbc2b1b
3
- size 1501793
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03912375f6d620aad39e96986c36ce270f1b6c52168ace0fa1dd8f501f233ee6
3
+ size 1660344
README.md DELETED
@@ -1,77 +0,0 @@
1
- ---
2
- dataset_info:
3
- - config_name: BillSum
4
- features:
5
- - name: article
6
- dtype: string
7
- - name: summary
8
- dtype: string
9
- splits:
10
- - name: train
11
- num_bytes: 181918689
12
- num_examples: 18949
13
- - name: test
14
- num_bytes: 31298716
15
- num_examples: 3269
16
- download_size: 94913340
17
- dataset_size: 213217405
18
- - config_name: EurLexSum
19
- features:
20
- - name: article
21
- dtype: string
22
- - name: summary
23
- dtype: string
24
- splits:
25
- - name: train
26
- num_bytes: 92562815
27
- num_examples: 1129
28
- - name: test
29
- num_bytes: 24048249
30
- num_examples: 188
31
- - name: validation
32
- num_bytes: 23797569
33
- num_examples: 187
34
- download_size: 56129905
35
- dataset_size: 140408633
36
- - config_name: MultiLexSum
37
- features:
38
- - name: article
39
- dtype: string
40
- - name: summary
41
- dtype: string
42
- splits:
43
- - name: train
44
- num_bytes: 11491245
45
- num_examples: 2210
46
- - name: test
47
- num_bytes: 3070390
48
- num_examples: 616
49
- - name: validation
50
- num_bytes: 1645115
51
- num_examples: 312
52
- download_size: 8078875
53
- dataset_size: 16206750
54
- configs:
55
- - config_name: BillSum
56
- data_files:
57
- - split: train
58
- path: BillSum/train-*
59
- - split: test
60
- path: BillSum/test-*
61
- - config_name: EurLexSum
62
- data_files:
63
- - split: train
64
- path: EurLexSum/train-*
65
- - split: test
66
- path: EurLexSum/test-*
67
- - split: validation
68
- path: EurLexSum/validation-*
69
- - config_name: MultiLexSum
70
- data_files:
71
- - split: train
72
- path: MultiLexSum/train-*
73
- - split: test
74
- path: MultiLexSum/test-*
75
- - split: validation
76
- path: MultiLexSum/validation-*
77
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
legal_summarization.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datasets
2
+ import os
3
+ import json
4
+
5
+
6
+ _CITATION = """
7
+
8
+ """
9
+
10
+ _DESCRIPTION = """
11
+
12
+ """
13
+
14
+ class Builder(datasets.GeneratorBasedBuilder):
15
+ VERSION = datasets.Version("1.0.0")
16
+
17
+ BUILDER_CONFIGS = [
18
+ datasets.BuilderConfig(name=name, version=datasets.Version("1.0.0"), description=_DESCRIPTION)
19
+ for name in ["BillSum", "MultiLexSum", "EurLexSum"]
20
+ ]
21
+
22
+ def _info(self):
23
+ features = datasets.Features(
24
+ {
25
+ "article": datasets.Value("string"),
26
+ "summary": datasets.Value("string"),
27
+ }
28
+ )
29
+ return datasets.DatasetInfo(
30
+ description=_DESCRIPTION,
31
+ features=features,
32
+ homepage="",
33
+ license="",
34
+ citation=_CITATION,
35
+ )
36
+
37
+ def _split_generators(self, dl_manager):
38
+ train_json = dl_manager.download(os.path.join(self.config.name, "train.jsonl"))
39
+ if self.config.name != "BillSum":
40
+ valid_json = dl_manager.download(os.path.join(self.config.name, "validation.jsonl"))
41
+ test_json = dl_manager.download(os.path.join(self.config.name, "test.jsonl"))
42
+
43
+ return [
44
+ datasets.SplitGenerator(
45
+ name=datasets.Split.TRAIN,
46
+ gen_kwargs={"path": train_json},
47
+ ),
48
+ datasets.SplitGenerator(
49
+ name=datasets.Split.TEST,
50
+ gen_kwargs={"path": test_json},
51
+ )
52
+ ] + ([datasets.SplitGenerator(
53
+ name=datasets.Split.VALIDATION,
54
+ gen_kwargs={"path": valid_json},
55
+ )] if self.config.name != "BillSum" else [])
56
+
57
+ # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
58
+ def _generate_examples(self, path):
59
+ with open(path, encoding="utf-8") as f:
60
+ for key, row in enumerate(f):
61
+ yield key, json.loads(row)