Datasets:
rcds
/

ArXiv:
Tags:
legal
License:
ramonachristen commited on
Commit
d8115c8
1 Parent(s): 0a3916b

Update MultiLegalNeg.py

Browse files
Files changed (1) hide show
  1. MultiLegalNeg.py +3 -3
MultiLegalNeg.py CHANGED
@@ -89,7 +89,7 @@ class MultiLegalNeg(datasets.GeneratorBasedBuilder):
89
  citation=_CITATION
90
  )
91
 
92
- def _split_generators(self, dl_manager):
93
  data_files = {
94
  "train": [
95
  "data/train/it_train.jsonl.xz",
@@ -119,11 +119,11 @@ class MultiLegalNeg(datasets.GeneratorBasedBuilder):
119
  "data/validation/en_bioscope_validation.jsonl.xz"
120
  ]
121
  }
122
-
123
  train_data = [{"text": line.strip(), "language": lang} for lang, files in data_files.items() for file in files for line in xz.open(file, "rt", encoding="utf-8")]
124
  test_data = [{"text": line.strip(), "language": lang} for lang, files in data_files.items() for file in files for line in xz.open(file, "rt", encoding="utf-8")]
125
  validation_data = [{"text": line.strip(), "language": lang} for lang, files in data_files.items() for file in files for line in xz.open(file, "rt", encoding="utf-8")]
126
-
127
  return [
128
  self._split_generate("train", data=train_data),
129
  self._split_generate("test", data=test_data),
 
89
  citation=_CITATION
90
  )
91
 
92
+ def _split_generators(self, dl_manager):
93
  data_files = {
94
  "train": [
95
  "data/train/it_train.jsonl.xz",
 
119
  "data/validation/en_bioscope_validation.jsonl.xz"
120
  ]
121
  }
122
+
123
  train_data = [{"text": line.strip(), "language": lang} for lang, files in data_files.items() for file in files for line in xz.open(file, "rt", encoding="utf-8")]
124
  test_data = [{"text": line.strip(), "language": lang} for lang, files in data_files.items() for file in files for line in xz.open(file, "rt", encoding="utf-8")]
125
  validation_data = [{"text": line.strip(), "language": lang} for lang, files in data_files.items() for file in files for line in xz.open(file, "rt", encoding="utf-8")]
126
+
127
  return [
128
  self._split_generate("train", data=train_data),
129
  self._split_generate("test", data=test_data),