kiddothe2b commited on
Commit
70364d4
1 Parent(s): 44e273f

Include test files

Browse files
data_files/canadian-court-cases_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cb49d5269de418bb650fa9da0ed3105fb73ae9a4f973181dfa0e6291b6373ae
3
+ size 5131044
data_files/canadian-legislation_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f03aff8d67fbaf4ae06b1ce3f3883d0abc5d65fcd3ea1a902e0c126e183c8e3
3
+ size 1068412
data_files/ecthr-cases_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e1f5860604b8d7088656916a7ae5a1d5991eff777c93c9b9bcd7177c5993d8f
3
+ size 6675664
data_files/eu-court-cases_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddc78db2586e9a3df62489550a824df4390015c29a887120454473959e7fb9a3
3
+ size 18707552
data_files/eu-legislation_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e42593c5fe3f4f3a5538b989aaf033eecccc2983d23bee549a21f71fed8c34b4
3
+ size 32121236
data_files/indian-court-cases_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:660a726fe1ba7e545df9ee05546263347cd6e3696e3d6949dcd104e78b052483
3
+ size 11463652
data_files/uk-court-cases_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7199d7969a78d8e03bd6fe143c12e33c4d71175600ce5cad793ad9f54462460
3
+ size 48038216
data_files/uk-legislation_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc25c68cfba9fd61976520c31104a88e28bb6eba602a056d3e88af190fb4b1e8
3
+ size 11698668
data_files/us-contracts_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:989a82e5e7bc76c400dbe3200651f0d525a7dcd411177235a2ff903efc7d621e
3
+ size 149174940
data_files/us-contracts_test_2.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e1ef3ff62e680abe440ed7d7ab96cb2300fb457e1e06da71170916db03b39d5
3
+ size 60064760
data_files/us-court-cases_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d06c9f8d6f769c0ef2a798ece377c41c48b20dd6ea0493795ab0618c297b99f7
3
+ size 180292540
data_files/us-court-cases_test_2.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edf2e674d334c2b30293e13f8957345885f76e59b9872ec8fed24e8bf4d57a2c
3
+ size 40847524
data_files/us-legislation_test_1.jsonl.tar.xz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab772dc944feb3774affba5e551db519dcc3525dd0431d7515d562ce1d382dd2
3
+ size 70097604
the_legal_pile_preprocessed.py CHANGED
@@ -124,17 +124,17 @@ class LegalPile(datasets.GeneratorBasedBuilder):
124
  def _split_generators(self, dl_manager):
125
  train_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.tar.xz', f'_train_{idx+1}.jsonl.tar.xz')
126
  for idx in range(self.config.n_files)])
127
- # test_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.xz', 'test.jsonl.xz')])
128
 
129
  return [
130
  datasets.SplitGenerator(
131
  name=datasets.Split.TRAIN,
132
  gen_kwargs={"filepaths": train_data_dir, "split": 'train'},
133
  ),
134
- # datasets.SplitGenerator(
135
- # name=datasets.Split.TEST,
136
- # gen_kwargs={"filepaths": test_data_dir, "split": 'test'},
137
- # )
138
  ]
139
 
140
  def _generate_examples(self, filepaths, split):
 
124
  def _split_generators(self, dl_manager):
125
  train_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.tar.xz', f'_train_{idx+1}.jsonl.tar.xz')
126
  for idx in range(self.config.n_files)])
127
+ test_data_dir = dl_manager.download([self.config.filepath.replace('.jsonl.tar.xz', '_test_1.jsonl.tar.xz')])
128
 
129
  return [
130
  datasets.SplitGenerator(
131
  name=datasets.Split.TRAIN,
132
  gen_kwargs={"filepaths": train_data_dir, "split": 'train'},
133
  ),
134
+ datasets.SplitGenerator(
135
+ name=datasets.Split.TEST,
136
+ gen_kwargs={"filepaths": test_data_dir, "split": 'test'},
137
+ )
138
  ]
139
 
140
  def _generate_examples(self, filepaths, split):