Update tydiqa-goldp.py
Browse files- tydiqa-goldp.py +5 -5
tydiqa-goldp.py
CHANGED
@@ -101,11 +101,11 @@ class tydiqa_GoldP(datasets.GeneratorBasedBuilder):
|
|
101 |
|
102 |
with open(filepath, encoding="utf-8") as f:
|
103 |
for row in f:
|
104 |
-
print("Here:")
|
105 |
-
print(row)
|
106 |
-
assert False
|
107 |
-
data = json.load(f)
|
108 |
-
for article in data["data"]:
|
109 |
title = article.get("title", "").strip()
|
110 |
for paragraph in article["paragraphs"]:
|
111 |
context = paragraph["context"].strip()
|
|
|
101 |
|
102 |
with open(filepath, encoding="utf-8") as f:
|
103 |
for row in f:
|
104 |
+
#print("Here:")
|
105 |
+
#print(row)
|
106 |
+
#assert False
|
107 |
+
#data = json.load(f)
|
108 |
+
#for article in data["data"]:
|
109 |
title = article.get("title", "").strip()
|
110 |
for paragraph in article["paragraphs"]:
|
111 |
context = paragraph["context"].strip()
|