Datasets:
GEM
/

Tasks:
Other
Modalities:
Text
Languages:
English
ArXiv:
Libraries:
Datasets
License:
Abinaya Mahendiran commited on
Commit
e181e8d
1 Parent(s): 8b9563a

Updated data loader script

Browse files
Files changed (1) hide show
  1. squad_v2.py +1 -1
squad_v2.py CHANGED
@@ -127,7 +127,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
127
  """Yields examples."""
128
  # TODO(squad_v2): Yields (key, example) tuples from the dataset
129
  with open(filepath, encoding="utf-8") as f:
130
- data = json.loads(f)
131
  for id_, row in enumerate(data["data"]):
132
  # Features currently used are "context", "question", and "answers".
133
  # Others are extracted here for the ease of future expansions.
 
127
  """Yields examples."""
128
  # TODO(squad_v2): Yields (key, example) tuples from the dataset
129
  with open(filepath, encoding="utf-8") as f:
130
+ data = json.load(f)
131
  for id_, row in enumerate(data["data"]):
132
  # Features currently used are "context", "question", and "answers".
133
  # Others are extracted here for the ease of future expansions.