system HF staff commited on
Commit
1ddf349
1 Parent(s): e787f92

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

Files changed (1) hide show
  1. social_i_qa.py +1 -1
social_i_qa.py CHANGED
@@ -81,7 +81,7 @@ class SocialIQa(datasets.GeneratorBasedBuilder):
81
  """Yields examples."""
82
  # TODO(social_i_qa): Yields (key, example) tuples from the dataset
83
  with open(labelpath, encoding="utf-8") as f:
84
- labels = [label for label in f]
85
  with open(filepath, encoding="utf-8") as f1:
86
  for id_, row in enumerate(f1):
87
  data = json.loads(row)
 
81
  """Yields examples."""
82
  # TODO(social_i_qa): Yields (key, example) tuples from the dataset
83
  with open(labelpath, encoding="utf-8") as f:
84
+ labels = [label.strip() for label in f]
85
  with open(filepath, encoding="utf-8") as f1:
86
  for id_, row in enumerate(f1):
87
  data = json.loads(row)