Update xtd_11.py
Browse files
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 |
-
|
72 |
-
|
|
|
|
|
|
|
|
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
|