Datasets:
rcds
/

ninabaum commited on
Commit
f5c1f01
1 Parent(s): 2f732a7

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("source_language", "n/a")
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