Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
json
Sub-tasks:
extractive-qa
Languages:
Catalan
Size:
< 1K
ArXiv:
License:
Commit
•
9fa4486
1
Parent(s):
7e2fb43
Fix TypeError
Browse files- viquiquad.py +1 -1
viquiquad.py
CHANGED
@@ -98,7 +98,7 @@ class ViquiQuAD(datasets.GeneratorBasedBuilder):
|
|
98 |
"""This function returns the examples in the raw (text) form."""
|
99 |
logger.info("generating examples from = %s", filepath)
|
100 |
with open(filepath, encoding="utf-8") as f:
|
101 |
-
viquiquad = json.load(f
|
102 |
for article in viquiquad["data"]:
|
103 |
title = article.get("title", "").strip()
|
104 |
for paragraph in article["paragraphs"]:
|
|
|
98 |
"""This function returns the examples in the raw (text) form."""
|
99 |
logger.info("generating examples from = %s", filepath)
|
100 |
with open(filepath, encoding="utf-8") as f:
|
101 |
+
viquiquad = json.load(f)
|
102 |
for article in viquiquad["data"]:
|
103 |
title = article.get("title", "").strip()
|
104 |
for paragraph in article["paragraphs"]:
|