Datasets:
Size:
10K - 100K
License:
Update occlusion_swiss_judgment_prediction.py
Browse files
occlusion_swiss_judgment_prediction.py
CHANGED
@@ -158,6 +158,6 @@ class OcclusionSwissJudgmentPrediction(datasets.GeneratorBasedBuilder):
|
|
158 |
with open(filepath, encoding="utf-8") as f:
|
159 |
for id_, row in enumerate(f):
|
160 |
data = json.loads(row)
|
161 |
-
_ = data.setdefault("
|
162 |
if self.config.language in ["all"] or data["language"] == self.config.language:
|
163 |
yield id_, data
|
|
|
158 |
with open(filepath, encoding="utf-8") as f:
|
159 |
for id_, row in enumerate(f):
|
160 |
data = json.loads(row)
|
161 |
+
_ = data.setdefault("language", "n/a")
|
162 |
if self.config.language in ["all"] or data["language"] == self.config.language:
|
163 |
yield id_, data
|