system HF staff commited on
Commit
3a617f7
1 Parent(s): 27fad46

Update files from the datasets library (from 1.10.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.10.0

Files changed (1) hide show
  1. wi_locness.py +3 -1
wi_locness.py CHANGED
@@ -199,6 +199,7 @@ submissions and assigned them a CEFR level."""
199
  else:
200
  assert False
201
 
 
202
  for level in levels:
203
  with open(filepath / f"{level}.{split}.json", "r", encoding="utf-8") as fp:
204
  for line in fp:
@@ -218,4 +219,5 @@ submissions and assigned them a CEFR level."""
218
  if self.config.name == "wi":
219
  out["userid"] = o.get("userid", "")
220
 
221
- yield o["id"], out
 
199
  else:
200
  assert False
201
 
202
+ id_ = 0
203
  for level in levels:
204
  with open(filepath / f"{level}.{split}.json", "r", encoding="utf-8") as fp:
205
  for line in fp:
219
  if self.config.name == "wi":
220
  out["userid"] = o.get("userid", "")
221
 
222
+ yield id_, out
223
+ id_ += 1