thawani commited on
Commit
f2e9330
·
1 Parent(s): 2aaebe6

Update WikiConvert.py

Browse files
Files changed (1) hide show
  1. WikiConvert.py +1 -1
WikiConvert.py CHANGED
@@ -114,7 +114,7 @@ class WikiConvert(datasets.GeneratorBasedBuilder):
114
  key = 0
115
  with open(filepath, encoding="utf-8") as f:
116
  ds = json.load(f)
117
- for row in ds["data"]:
118
  yield key, {
119
  "id": row["id"],
120
  "offset": row["offset"],
 
114
  key = 0
115
  with open(filepath, encoding="utf-8") as f:
116
  ds = json.load(f)
117
+ for row in ds:
118
  yield key, {
119
  "id": row["id"],
120
  "offset": row["offset"],