Update tydiqa-goldp.py
Browse files- tydiqa-goldp.py +2 -9
tydiqa-goldp.py
CHANGED
@@ -27,7 +27,7 @@ the use of translation (unlike MLQA and XQuAD).
|
|
27 |
|
28 |
|
29 |
_LANG = ["arabic", "bengali", "english", "finnish", "indonesian", "japanese", "korean", "russoam", "swahili", "telugu", "thai"]
|
30 |
-
|
31 |
_URL = "https://huggingface.co/datasets/khalidalt/tydiqa-goldp/resolve/main/{split}/{language}-{split}.jsonl"
|
32 |
_VERSION = datasets.Version("1.1.0", "")
|
33 |
|
@@ -105,12 +105,5 @@ class tydiqa_GoldP(datasets.GeneratorBasedBuilder):
|
|
105 |
for _id,row in enumerate(f):
|
106 |
data = json.loads(row)
|
107 |
|
108 |
-
|
109 |
-
#assert False
|
110 |
-
|
111 |
-
#_id = row["id"]
|
112 |
yield _id, data
|
113 |
-
#assert False
|
114 |
-
#data = json.load(f)
|
115 |
-
#for article in data["data"]:
|
116 |
-
|
|
|
27 |
|
28 |
|
29 |
_LANG = ["arabic", "bengali", "english", "finnish", "indonesian", "japanese", "korean", "russoam", "swahili", "telugu", "thai"]
|
30 |
+
|
31 |
_URL = "https://huggingface.co/datasets/khalidalt/tydiqa-goldp/resolve/main/{split}/{language}-{split}.jsonl"
|
32 |
_VERSION = datasets.Version("1.1.0", "")
|
33 |
|
|
|
105 |
for _id,row in enumerate(f):
|
106 |
data = json.loads(row)
|
107 |
|
108 |
+
|
|
|
|
|
|
|
109 |
yield _id, data
|
|
|
|
|
|
|
|