khalidalt commited on
Commit
55d3a10
1 Parent(s): 7017e4b

Update tydiqa-goldp.py

Browse files
Files changed (1) hide show
  1. 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()