psyche commited on
Commit
f205cc7
1 Parent(s): 78a24cd
Files changed (1) hide show
  1. kowiki.py +2 -0
kowiki.py CHANGED
@@ -154,6 +154,8 @@ class KoWiki(datasets.GeneratorBasedBuilder):
154
  output["text"] = process_text(node.text)
155
  output["id"] = f"{n:08d}"
156
  print(output)
 
 
157
  yield n, output
158
  n += 1
159
  output = {}
 
154
  output["text"] = process_text(node.text)
155
  output["id"] = f"{n:08d}"
156
  print(output)
157
+ if "url" not in output:
158
+ output["url"] = ""
159
  yield n, output
160
  n += 1
161
  output = {}