khalidalt commited on
Commit
b389817
1 Parent(s): c51cb3c

Update xtd_11.py

Browse files
Files changed (1) hide show
  1. xtd_11.py +5 -2
xtd_11.py CHANGED
@@ -68,5 +68,8 @@ class XTD_11(datasets.GeneratorBasedBuilder):
68
  # Load data from a single file
69
  with open(filepath, encoding="utf-8") as f:
70
  for row in f:
71
- yield id_, row
72
- id_ +=1
 
 
 
 
68
  # Load data from a single file
69
  with open(filepath, encoding="utf-8") as f:
70
  for row in f:
71
+ if row:
72
+
73
+ data = json.loads(row)
74
+ yield id_, data
75
+ id_ +=1