Datasets:

Modalities:
Text
Formats:
json
Sub-tasks:
extractive-qa
Languages:
Catalan
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
License:
albertvillanova HF staff commited on
Commit
9fa4486
1 Parent(s): 7e2fb43

Fix TypeError

Browse files
Files changed (1) hide show
  1. 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, encoding="utf-8")
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"]: